using python to create a directory and check if it exists first code example
Example: python check if path does not exist
import os
if not os.path.exists('my_folder'):
os.makedirs('my_folder')
import os
if not os.path.exists('my_folder'):
os.makedirs('my_folder')