最佳答案
我需要检查文件夹中是否存在 xml 文件。
DirectoryInfo di = new DirectoryInfo(ProcessingDirectory);
FileInfo[] TXTFiles = di.GetFiles("*.xml");
if (TXTFiles.Length == 0)
{
log.Info("no files present")
}
Is this the best way to check a file exists in the folder.
I need to check just an xml file is present