C#获取文件大小

固然了都须要引入System.IO这个命名空间html 第一个:数组 public static long GetDirectoryLength(string dirPath) { //判断给定的路径是否存在,若是不存在则退出 if (!Directory.Exists(dirPath)) return 0; long len = 0;post //定义一个DirectoryInfo对象 Dire
相关文章
相关标签/搜索