C# Class DiskSizeUtil, code

显示文件 Open project: shendongnian/code

Public Methods

Method Description
GetDirectorySize ( DirectoryInfo, root, int levels ) : List

Calculate disk space usage under root. If levels is provided, then return subdirectory disk usages as well, up to level levels deep. If levels is not provided or is 0, return a list with a single element representing the directory specified by root.

Private Methods

Method Description
GetDirectorySize ( DirectoryInfo, d, List, data, int levels ) : FolderSizeInfo

Method Details

GetDirectorySize() public static method

Calculate disk space usage under root. If levels is provided, then return subdirectory disk usages as well, up to level levels deep. If levels is not provided or is 0, return a list with a single element representing the directory specified by root.
public static GetDirectorySize ( DirectoryInfo, root, int levels ) : List
root DirectoryInfo,
levels int
return List