递归统计文件大小
递归统计文件大小C#winformcode:DirectoryInfodirectoryInfo=newDirectoryInfo(path);longlength=0;foreach(FileSystemInfofsiindirectoryInfo.GetFileSystemInfos()){if(fsiisFileInfo){length+=((FileInfo)fsi).Length;}
用户评论