小编Cem*_*kin的帖子

检查目录是否包含任何文件

 DirectoryInfo d = new DirectoryInfo(path);

 if()   // there is a file in the directory do something.
Run Code Online (Sandbox Code Playgroud)

如果存在文件,我可以获取这些文件,但我还必须考虑该子文件夹路径中没有文件的可能性。

c# string directory file

1
推荐指数
1
解决办法
6897
查看次数

标签 统计

c# ×1

directory ×1

file ×1

string ×1