Click or drag to resize

PathCollectionGetFolderSize Method (String, Int32, Int32)

Returns the size of a folder, including all files in all subfolders, and the file count.
path must include a trailing backslash

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 7.1
Syntax
public static long GetFolderSize(
	string p_Path,
	out int p_FileCount,
	out int p_FolderCount
)

Parameters

p_Path
Type: SystemString
The full path of the folder.
p_FileCount
Type: SystemInt32
A variable in that the number of files will be returned.
p_FolderCount
Type: SystemInt32
A variable in that the number of subfolders will be returned.

Return Value

Type: Int64
The size of the given folder in Bytes.

Return Value

Type: Int64
The size of a folder, including all files in all subfolders, and the file count.
Exceptions
ExceptionCondition
DirectoryNotFoundExceptionThe path is invalid, such as being on an unmapped drive.
ArgumentNullExceptionp_Path is a null reference
SecurityExceptionThe caller does not have the required permission.
See Also