-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implements processing files in serial manner && watch for new files && smarter delete to preserve largest file #57
base: master
Are you sure you want to change the base?
Conversation
…hich leads to make DB insertions exactly after each hash and not in the end of processing a single chunk (a whole library). adds some prints for total number of files to be processed and success insert to database.
…ype. Error log was: File "C:\Python37\lib\site-packages\magic\magic.py", line 196, in errorcheck_null raise MagicException(err) magic.magic.MagicException: b"cannot read `filename.jpg' (Permission denied)"
Thanks for sharing the awesome script @philipbl ! |
…nt given. When a file modification occurs recursively in this path, the modified file will be added as if ```add``` command was chosen. Useful when you are sorting your library and adding new images to it. Removing is not supported yet. Also raises Pillow version because of Python 3.6 compatibility issues I experienced on Windows. Not tested so well after the update.
Added a function I needed to watch for incoming files and add them as they are modified. Also updated Pillow. |
No issues after uninstalling python 3.7 and installing python 3.6 with updated version of Pillow dependency. |
…ameter to sort files by size and preserve largest file on delete.
Now I also implemented |
there was a critical issue which is now fixed. But tests still dont pass because of the added option. |
Test will be ok from now. BTW i have not covered added features. |
when num_processes==1, which leads to make DB insertions exactly after each hash and not in the end of processing a single chunk (a whole library).
adds some prints for total number of files to be processed and success insert to database.