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

Mono.Unix.UnixFileSystemInfo.Exists Property

Returns a bool indicating whether the specified file system object exists. [Edit]

public bool Exists { get; }

Value

true if the caller has the required permissions and UnixFileSystemInfo.FullName contains the name of an existing file or directory; otherwise, false. If UnixFileSystemInfo.FullName is null or a zero-length string, returns false. [Edit]

Remarks

If the caller does not have sufficient permissions to read the file system object UnixFileSystemInfo.FullName, no exception is thrown and the method returns false regardless of the existence of UnixFileSystemInfo.FullName. [Edit]

Requirements

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