Click or drag to resize

filesAndDirectoryOperationsgetDirectorySize Method (DirectoryInfo)

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Returns byte count of the directory, by enumerating all files within

Namespace:  imbSCI.Core.extensions.io
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static long getDirectorySize(
	this DirectoryInfo directory
)
Request Example View Source

Parameters

directory
Type: System.IODirectoryInfo

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 DirectoryInfo. 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