Mono.Unix.UnixFileSystemInfo Class
Provides information and performs operations on file system entries.

See Also: UnixFileSystemInfo Members

Syntax

public abstract class UnixFileSystemInfo

See Also

UnixDirectoryInfo
UnixFileInfo
UnixSymbolicLinkInfo

Remarks

The Mono.Unix.UnixFileSystemInfo class provides information about a file system entry and permits file system entry manipulation such as:

Information provided by this type may not be valid for any significant period of time, due to potential race conditions with other processes running on the system or because of file management actions performed within the current process.

The only guarantee is that the information provided was valid at some point in time, or an InvalidOperationException exception will be thrown when attempting to access the provided information.

Note: To clarify, once the file system entry UnixFileSystemInfo.FullName is found, it won't be checked for again until a call to UnixFileSystemInfo.Refresh. FullName will be checked for during object construction, but need not exist during object construction -- UnixFileSystemInfo.Exists will let you know if the file currently exists and does an implicit Refresh. If FullName doesn't exist when the UnixFileSystemInfo is created, it will be checked for whenever information about the file system entry is required, such as with UnixFileSystemInfo.Device and UnixFileSystemInfo.Length.

Check the individual method and property documentation to determine if and when an exception will be thrown.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Requirements

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