Page 1 of 1

Old files cleanup

Posted: 28 Jun 2014, 01:45
by pax0707
Is there a way to check a Movies and TV Shows folders made by amc and delete all the files older then x days and then delete all the leftover empty folders?

I've decided to use filebot on a shared PC few of us in the department use and sooner or later it's gonna run out of storage space. This way I wouldn't have to manually go through all the folders and prune the oldest files.

Re: Old files cleanup

Posted: 28 Jun 2014, 03:40
by rednoah
The cleaner script can take care of left over folders.

Batch deleting files is basic shell scripting. Though it's equally easy as Groovy script.

e.g.
http://stackoverflow.com/questions/1473 ... t-too-long

Re: Old files cleanup

Posted: 28 Jun 2014, 04:40
by pax0707
I should've mentioned I'm on windows.
;- )=

I can sort deletion with forfiles and then run cleaner to deal with empty folders.