小编典典

文件夹中的文件数

c#

如何使用ASP.NET和C#从文件夹中获取文件数量?


阅读 411

收藏
2020-05-19

共1个答案

小编典典

System.IO.Directory myDir = GetMyDirectoryForTheExample();
int count = myDir.GetFiles().Length;
2020-05-19