Click or drag to resize

PathCollectionGetFolderSize260 Method

Returns the size of a folder, including all files in all subfolders, and the file count for paths that don't contain folders longer than 260 characters, this is the old implementation that was used in ShellBrowser.Net up to and including version 4.0.0.3
path must include a trailing backslash

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 7.0
Syntax
public static long GetFolderSize260(
	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
Returns the size of a folder, including all files in all subfolders, and the file count for paths.
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