How to check if particular file exists in multiple folders

How to verify the particular file is exist in any one of this date folders and write output

Example :

Filename : “test.pdf” file is preset in one of these above folders and bot has to find it and give Boolean result

Hi @Sathish_Kumar_S

You can try like this

1 Like

The file will be downloaded every week from the website and i want to verify if that particular file (Ex: DS123.pdf) is already available in folder

Note : File name will be available in the variable

@Sathish_Kumar_S

Then you can pass the file name variable in below

Path.Combine(CurrentFolder.ToString, FileName)

Hi @Sathish_Kumar_S

Hope it helps!!

This should be sufficient:
FolderPath and fileName is variable
image

You can use this expression to find the file from a folder including all subfolders:
image

@Sathish_Kumar_S

hi

you can use path exists activity and select in that file

to find the file is exists or not

which gives boolean ouput

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