1. 获取指定目录下所有的文件全路径:

public IEnumerable<String> GetFiles(string dir)
{
    
foreach (String file in System.IO.Directory.GetFiles(dir, "*.*", System.IO.SearchOption.AllDirectories)) {
        
yield return file;
    }

}  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2021-10-27
  • 2021-06-06
  • 2022-01-23
  • 2022-02-22
猜你喜欢
  • 2022-12-23
  • 2021-12-21
  • 2021-09-24
  • 2021-06-26
  • 2021-05-08
  • 2023-04-10
相关资源
相似解决方案