Click or drag to resize

PathCollectionGetFolderSize(String) Method

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

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

Parameters

p_Path  String
The full path of the folder.

Return Value

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