Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Re: Check for "done" file and download directory

Do you want to delete only the folders that contain the "done" file and keep the rest? Or do you want to check all folders and delete all, only if all folders contain the "done" files? Is there a fixed set of folders?

Check for "done" file and download directory


Is there a way to script the check for a done file in all directories (inside the home folder) and then download/delete the directory if said "done" file exists.
Sample structure (/home/Directories-To-check).

Apologies if this question has been asked before but I couldn't find anything to steer me in the correct direction.

Thank u for reading this and thank you in advance for the help