Click or drag to resize

PathGetFreeSpace Method

Function to return the number of bytes available on the drive of the specified path.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static long GetFreeSpace(
	string path
)

Parameters

path  String
Path to check free space.

Return Value

Int64
Long integer containing the number of bytes available.
Exceptions
ExceptionCondition
InvalidDirectoryLocationExceptionInvalid path specified.
PathTooLongExceptionSpecified path is too long.
ArgumentExceptionThe specified path contains invalid characters.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also