I'm trying to check a directory to see if any pdf files exist or not, is it possible to add a wildcard to check if any pdf files exist on my below code?
if (File.Exists(scanDirTextBox.Text))
{
MessageBox.Show("File exists");
}
else
{
MessageBox.Show("No files");
}