摘要:
当然了都需要引入System.IO这个命名空间第一个:public static long GetDirectoryLength(string dirPath){//判断给定的路径是否存在,如果不存在则退出if (!Directory.Exists(dirPath))return 0;long len = 0;//定义一个DirectoryInfo对象DirectoryInfo di = new ... 阅读全文
posted @ 2010-06-17 11:58
Danny Chen
阅读(49926)评论(0)推荐(0)
编辑