If condition always comes as false

You need to combine two conditions. First check if the folder path exists and then check if the folder contains any files.

Directory.Exists(filePath) AndAlso Directory.GetFiles(filePath, "*.pdf").Count > 0
1 Like