You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line of code use os.mkdir to create sub-directory.
try: os.mkdir(sub_path)
exceptOSErrorase:
print("Could not create dir "+e.strerror)
raiseSystemExit
It prompts error on my environment because os.mkdir doesn't make all intermediate-level directories needed to contain the leaf directory, as stated in the Python official documentation. Changing to os.makedirs solves my problem.
The text was updated successfully, but these errors were encountered:
This line of code use
os.mkdir
to create sub-directory.It prompts error on my environment because
os.mkdir
doesn't make all intermediate-level directories needed to contain the leaf directory, as stated in the Python official documentation. Changing toos.makedirs
solves my problem.The text was updated successfully, but these errors were encountered: