Skip to content
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

Add support for filtering files to a specific size #212

Open
atc0005 opened this issue Jan 22, 2020 · 1 comment
Open

Add support for filtering files to a specific size #212

atc0005 opened this issue Jan 22, 2020 · 1 comment

Comments

@atc0005
Copy link
Owner

atc0005 commented Jan 22, 2020

I think that this was something I had already planned on doing, but seeing this Tweet in my feed reminded me to ahead and stub out this issue for later.

sudo find /tmp/capture -maxdepth 1 -type f -name '*.jpg' -size -10000c -delete

Delete files only in /tmp/capture, ending with .jpg, and less than 10000 bytes (blank images in my timelapse configuration)

Refs: https://twitter.com/climagic/status/1219993675641577476

@atc0005
Copy link
Owner Author

atc0005 commented Jan 22, 2020

Other issues to create:

  • prune empty dirs option
  • Max and min file size filters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant