且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何检查是否一个文件夹中的存在?

更新时间:2023-11-25 16:34:28

这是一个方法,如果任何XML的文件存在文件夹中,是的。

This is a way to see if any XML-files exists in that folder, yes.

要检查特定文件使用File.Exists(path)$c$c>,它会返回一个布尔值,表示wheter在路径该文件存在。

To check for specific files use File.Exists(path), which will return a boolean indicating wheter the file at path exists.