Old files cleanup

Any questions? Need some help?
Post Reply
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

Old files cleanup

Post 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.
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Old files cleanup

Post 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
:idea: Please read the FAQ and How to Request Help.
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

Re: Old files cleanup

Post 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.
Post Reply