Click or drag to resize

FilePathGetAvailableFreeSpace Method

Tries to get the free space values for a given path. This path can be a network share or a mount point.

Namespace: GSF.IO
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.232-beta+203aa83a5a82d50f387e69875549969ad138d6e0
Syntax
public static bool GetAvailableFreeSpace(
	string pathName,
	out long freeSpace,
	out long totalSize
)
View Source

Parameters

pathName  String
The path to the location
freeSpace  Int64
The number of user space bytes
totalSize  Int64
The total number of bytes on the drive.

Return Value

Boolean
true if successful; otherwise false if there was an error.
See Also