count number of files in a directory - VisualCron - Forum

Community forum

Sean Gregory
I am putting 3 files into a directory in separate tasks in the same job.

I want to count the number of files that are in the directory, and place a trigger file somewhere when there are 3 files

any idea how to do this?
You could create a list files task, then in the success flow count the rows using: {STRING(RowCount|{TASK(Active|StdOut)})}. If = 3 then go to the task that creates your trigger file.
Scroll to Top