Jump to content

Delete all folders with _FAILED_ in their name


Dannyboyni

Recommended Posts

I am using couchpotato and sabnzbd to download movies. The problem is when a download fails it is left in the complete folder.

 

What I want to know is if there are any scripts that can check for folders with _FAILED_ in their name and delete them and all contents inside. I would want this script to one once every 24 hours.

 

The path to the folder is: /mnt/cache/apps/sabnzbd/Downloads/complete/movies

 

Many thanks.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...