create the directories if they don't exist in Python
Sep
01
1
1
import os directory = 'path/to/folder' if not os.path.exists(directory): os.makedirs(directory)
import os directory = 'path/to/folder' if not os.path.exists(directory): os.makedirs(directory)