How come that these lines of code creates a folder, but returns an error output?
key_ = "Test"
new_folder = os.makedirs(str(key_)+str(datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d %H:%M')))
os.chdir(str(new_folder))
The error I'm getting is
line 457, in download_url
os.chdir(str(new_folder))
FileNotFoundError: [Errno 2] No such file or directory: 'None'
source https://stackoverflow.com/questions/73114307/os-chdir-returns-no-such-file-or-directory-none
Comments
Post a Comment