C#獲取文件大小

固然了都須要引入System.IO這個命名空間html 第一個:數組 public static long GetDirectoryLength(string dirPath) { //判斷給定的路徑是否存在,若是不存在則退出 if (!Directory.Exists(dirPath)) return 0; long len = 0;post //定義一個DirectoryInfo對象 Dire
相關文章
相關標籤/搜索