Align disk cleaning with disk_species_clean.sh#276
Align disk cleaning with disk_species_clean.sh#276alexbelgium wants to merge 15 commits intoNachtzuster:mainfrom
Conversation
|
Allow to have a single logic for deleting old files. Old logic : "delete all files older than 90 days not in the exclude_files until reaching the right free space ; if not enough, purge PROCESSED folder (that was already removed from this fork)" This should allow to standardize disk clearance in a way that saveguards important files : species with less recordings, and recordings with higher confidence |
|
For the last time : I've set up a ubuntu vscode which will sort that. Should be fine from now on |
|
Closed to clean PR list |
|
Thanks, I see. My "safe threshold", designed to avoid deleting too much files, was set at disk size * 0.9 which led to the 85% value. I'll fix this |
|
This should be better - I reviewed the logic, improved a bit where I saw potential failures (symlinks ; decimals...) and added comments for the script logic |
|
Well the logic of the script is that :
If this doesn't happen then my code is flawed ;-) I'll pass it in draft, do some test, and put it again in review once working Or I just close it; as you prefer (honestly I don't use this feature as I'm using the "max number of files per species" limitator which allows keeping the disk size under control) |
Refactor disk space management script for improved error handling and integer sanitization.





#256