Example #1: I have a folder in which is put one copy of every screenshot I take. I would like to keep them around for a certain time, then delete them.
Example #2: Or perhaps I just want to have 14 files in there maximum. And when more than 14 are found, the oldest ones are deleted to keep the count to 15 or less.
The program I am suggesting would store cleanup settings for each folder the user wants "cleaned" periodically. It would also perform those cleaning tasks when initiated (like at startup).
Possible Cleaning Methods...
- Delete files older than a certain number of days (or hours, etc.) old.
- Delete oldest files when the maximum file count for that folder is reached or exceeded.
- Delete oldest files when the maximum total file size for that folder is reached or exceeded (i.e. when all files' size adds to more than specified amount, oldest are deleted until max is reached or passed.).
- Delete files that do not have a certain string in their name.
- Delete files whose names do not match a certain regular expression.
- Delete text files that do not have a certain string in their content.
- Delete text files whose content does not match a certain regular expression.
There are probably more cleaning methods out there, but these might be the most common. The first three were really the ones that spawned this idea. The others just came as I was thinking on how to make it better.
And perhaps you could put a certain filter on the first three options. Like, skip all .html files, but clean all jpg files.
I know windows cleanup is nice, but as far as I can tell, it just deletes them all, rather than keeping the most recent, etc.