Sure, no problem.
Basically, my folder ever has less than 2GB free, it will delete the oldest 2GB of files in that folder.
http://pastie.org/436870
If anyone has a hankering to convert this, I'd love if it were native to SABNZBD. Unfortunately, I'm not a python guy.
Search found 3 matches
- April 4th, 2009, 10:44 am
- Forum: Post-Processing Scripts
- Topic: Auto Delete Old Stuff (Tivo Style)
- Replies: 3
- Views: 4323
- April 1st, 2009, 6:05 pm
- Forum: Post-Processing Scripts
- Topic: Auto Delete Old Stuff (Tivo Style)
- Replies: 3
- Views: 4323
Re: Auto Delete Old Stuff (Tivo Style)
I think I have it figured out. I'll just do a touch on dir/*, then make my script to a cleanup of any files older than x days if it starts to get low on space.
- April 1st, 2009, 4:32 pm
- Forum: Post-Processing Scripts
- Topic: Auto Delete Old Stuff (Tivo Style)
- Replies: 3
- Views: 4323
Auto Delete Old Stuff (Tivo Style)
I'm trying to create a script that would delete anything older than x number of days. I've written a script that does what I'm looking for in PHP. My main problem now is that the file dates are not when the file was downloaded. They are instead, when the file was originally created/uploaded to use...