How to delete all files older than a day recursively in a directory and its subdirectories
Whoo! I haven't done a post that long in a while!
I put 'activerecord' in there to take advantage of the '24.hours.ago' notation, which makes life much easier. The cost is a little less than 2 seconds to load the library, so I think it's worth it. It runs as a daily job before backup to tape, to clear old backups from the directory tree.
|
|