Check for "done" file and download directory

Advertisement

simobyte
Joined:
Posts:
1
Location:
South Africa

Check for "done" file and download directory

Hi.

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

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?

Reply with quote

Advertisement

You can post new topics in this forum