If a directory does not exist in the python script, create that directory.
python
import os
if not os.path.isdir(dir):
os.makedirs(dir)
Get all the file names in the directory in the python script.
python
import glob
all_file=glob.glob(dir+"/*")
Recommended Posts