I need to be able to find all sub-directories that are missing a specific file.
I have thousands of zip files that are being Ftp'd to my server within a specific directory on a daily basis: /opt/FTP/IN Now the sender is creating folders under that directory and placing zip files within the folders being created, there could be hundreds to thousands of folders created. However, when they are done placing zip files in a specific folder, they are supposed to create a file called done.txt to let us know that folder is ready to be processed. Sometimes they miss placing the done.txt file and I need to go in and manually create it.
How can I search for and only collect the folder names that do not contain the done.txt file?