Hi,
Firstly, you can use tfilelist to retrieves a set of files based on a filemask pattern and check them by using tfileexist component then.
Please take a look at my screenshot.
As a matter of fact, if you want to check if there is any file in a folder, e.g. *.* or *.csv. You can check out "generate error if no file found " directly.