Click or drag to resize

filesAndDirectoryOperationsgetDirectorySize Method (String, String)

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Gets the size of all files within the directory, including subfolders. Optionally applies searchFilter for results

Namespace:  imbSCI.Core.extensions.io
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static long getDirectorySize(
	this string directory,
	string searchFilter = "*.*"
)
Request Example View Source

Parameters

directory
Type: SystemString
The directory.
searchFilter (Optional)
Type: SystemString
The search filter.

Return Value

Type: Int64

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also