count number of files in a directory - VisualCron - Forum

Community forum

Sean Gregory
2020-03-27T16:44:15Z
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?
Gary_W
2020-03-27T17:15:53Z
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