~Roxy's Blog~

Easy come,easy go~

2007年9月30日

获取文件夹大小的方法 ASP.NET

摘要: 以下内容为转载1publiclongGetDirectoryLength(stringdirPath){2if(!Directory.Exists(dirPath))3return0;4longlen=0;5DirectoryInfodi=newDirectoryInfo(dirPath);6foreach(FileInfofiindi.GetFiles()){7len+=fi.Length;8}... 阅读全文

posted @ 2007-09-30 15:43 Roxy_sy 阅读(704) 评论(0) 推荐(0)