Click or drag to resize

PathCollectionGetFolderSize Method (String)

Returns the size of a folder, including all files in all subfolders.

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

Parameters

p_Path
Type: SystemString
The full path of the folder.

Return Value

Type: Int64
The size of the given folder in Bytes.
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.
PathTooLongExceptionThe given path contains a subfolder that's fullpath has more than 260 characters.
See Also