Code to check if array of files contains any files

Hi all

In an assign I use the logic ‘New DirectoryInfo(‘requiredfolder’).GetFiles(“.”)’ to get an array of files (called arrFiles) from the required folder. The array is of system.IO.filesystem type

Occasionally they’ll be no files in there so I want to use a flow decision or an IF statement (whichever you think is easier) to check this.

What is the code (please) to put in the flow decision/IF statement to check this. I’ve tried arrFiles >0 = True and things like that to no avail (new to coding!!)

Thanks in advance
Jordan

ArrFiles.COUNT>0

1 Like

Thank you :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.