-
Notifications
You must be signed in to change notification settings - Fork 1
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
delete files only matching regexp #62
base: master
Are you sure you want to change the base?
Conversation
Thanks! I'll merge it after I added a test case (might take a few days) |
Thanks! Could you rebase? |
Pull Request Test Coverage Report for Build 2313760914
💛 - Coveralls |
Hey, rebased on dev. I realized this still wasn't working right on ZFS added, a workaround. Without workaround, i'd ask free-disk to free 1gb, and it would free 12gb. I suspect other CoW filesystems with non-trivial free-space tracking would need this too |
… helps with filesystems like ZFS where free-space is a lagging indicator. Indicate success on exit.
Thanks! I merged the regex part renaming the param to Before merging the second part (disk usage bug fix), I'll need to add tests first |
For more features see https://github.com/tarasglek/free-disk/tree/taras/precision. I added --dry-run and units to debug output to help me debug. Also changed exit code to make chaining more robust. |
I like this script, but would like to delete video files in my securitycam archive and keep pics. This achieves that.
I can now prioritize deletion of videos over static pics by issuing command in sequence