Apologies in advance, I'm *hoping* this turns out to be a stupid question...
I'm creating a scheduled SFTP connection to a server where our home folder contains a folder named "IN", which in turn has subfolders that are named more or less unpredictably.
in other words, we'll see something like:
/home/us/IN/someuser.datestamp/file1.zip
/home/us/IN/someuser.datestamp/file2.zip
/home/us/IN/someotheruser.datestamp/file3.zip
/home/us/IN/someotheruser.someotherdatestamp/file4.zip
I can download all that just fine, and VisualCron will delete the files, which is what we want. But we also want to delete the empty folders, and I cannot figure out how I should be doing this in VisualCron.
Wildcards don't appear to work with the "delete folder" command, so my next thought was to just delete and re-create the IN folder itself, but VisualCron apparently can't do this if subfolders still exist.
So, what's the right way handle this?