Mono Class Library: Mono.Unix.UnixDriveInfo Overview | Members

Mono.Unix.UnixDriveInfo.AvailableFreeSpace Property

Gets the available free space for the drive.

public long AvailableFreeSpace { get; }

Value

A long containing the total available free space on the drive.

Exceptions

TypeReason
InvalidOperationException There was an error retrieving the total disk space. The volume may not be mounted.

Remarks

The available free space is the space that normal users are able to write to (in the absense of file system quotas which may further limit how much disk space users can fill). The drive may have some space reserved for the super-user (root).

Use UnixDriveInfo.TotalFreeSpace for the total free space, including space reserved for the super-user.

Requirements

Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0