1, to determine whether there is a folder, create a folder does not exist:
if not os.path.exists(path):
os.makedirs(path)