Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


jharp
  •  jharp
  • No customer Topic Starter
2011-07-05T10:30:57Z
Hi,

I've just started with Visual Cron and worked my way through it with some degree of success. Now I got stuck with probably a minor issue. However here's my problem:

I run a job that converts and uploads several files to ftp-server. The job runs once for every file and is triggered by the files copied to a certain folder on the server. After uploading the uploaded file is deleted.

Now I'd like to run a second job that checks if the folder from which I uploaded the files is empty. How can I check if a folder is empty?

Thanks for the help.
Jan
Sponsor
Forum information
ErikC
2011-07-05T13:09:40Z
Hi jharp, welcome to the forum!

You can use a file condition which checks on *.* in your folder.

Regards,
Erik
Uses Visualcron since 2006.
jharp
  •  jharp
  • No customer Topic Starter
2011-07-05T14:59:43Z
Thanks Erik,
But that would react to files which are in the folder. I need to check if a folder is empty. Or am I missing the point?
Jan
ErikC
2011-07-05T17:21:19Z
Hi,

you can use the file condition, use your folder and the *.* to check for every file, and use the file exist option.
Then is will check if there are any files present.
You can than setup the condition to continue when there is no match and to stops when there is a match.
This will result that the job/task, where you place this condition on, stops when there are files in the given folder and continues when there are no files in the folder.

Regards,
Erik
Uses Visualcron since 2006.
jharp
  •  jharp
  • No customer Topic Starter
2011-07-10T09:07:05Z
Thanks for your help Erik! Got it working!
Scroll to Top