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
Traceback (most recent call last):
File "./kirbyt-appdailysales-eea5ce6/appdailysales.py", line 540, in <module>
sys.exit(main())
File "./kirbyt-appdailysales-eea5ce6/appdailysales.py", line 533, in main
downloadFile(options)
File "./kirbyt-appdailysales-eea5ce6/appdailysales.py", line 483, in downloadFile
os.makedirs(fileDirectory)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 2] No such file or directory: ''
I don't speak Python much but as far as I can see the issue lies in the fact that in the following line (479 in the current version) fileDirectory becomes an empty string. This path does not exist, neither can it be created.
fileDirectory = os.path.dirname(filename)
I tried commenting out the directory check and it works fine. When I add -o "./" to the script call, it also works perfectly.
My guess is that it's just a missing "is empty" check on fileDirectory, but I may be wrong.
The text was updated successfully, but these errors were encountered:
When I try to use the script like this:
It produces this bunch of error message:
I don't speak Python much but as far as I can see the issue lies in the fact that in the following line (479 in the current version)
fileDirectory
becomes an empty string. This path does not exist, neither can it be created.I tried commenting out the directory check and it works fine. When I add
-o "./"
to the script call, it also works perfectly.My guess is that it's just a missing "is empty" check on
fileDirectory
, but I may be wrong.The text was updated successfully, but these errors were encountered: