Delete all folders with _FAILED_ in their name


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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.