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
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