Latest `development` version scanner is crashing trying to create empty directory.
Latest development
version scanner is crashing trying to create empty directory. After updating my demo site to test site user geo-tagging, I'm not able to refresh the cache.
46289 2021-10-29 13:48:30.576063 [saving all by search albums to json files...]
564175 2021-10-29 13:48:31.140238 [cleaning up...]
135884 2021-10-29 13:48:31.276122 [SAFE MODE end of pass] This was pass 1
227 2021-10-29 13:48:31.276349 [SAFE MODE begin of new pass] This is pass 2
351 2021-10-29 13:48:31.276700 [FATAL ERROR] couldn't create cache album subdir ('') quitting
Traceback (most recent call last):
File ".../myphotoshare_demo/myphotoshare/scanner/Utilities.py", line 24, in make_dir
os.makedirs(absolute_path)
File "/usr/lib/python3.7/os.py", line 221, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: 'cache_album'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ".../myphotoshare_demo/myphotoshare/scanner/main.py", line 141, in <module>
main()
File ".../myphotoshare_demo/myphotoshare/scanner/main.py", line 108, in main
TreeWalker()
File ".../myphotoshare_demo/myphotoshare/scanner/TreeWalker.py", line 63, in __init__
make_dir(Options.config['cache_album_subdir'], "cache album subdir")
File ".../myphotoshare_demo/myphotoshare/scanner/Utilities.py", line 30, in make_dir
sys.exit(-97)
NameError: name 'sys' is not defined