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

Mono.Unix.UnixFileSystemInfo.CanAccess Method

Determines whether or not the process can access UnixFileSystemInfo.FullName with the specified access mode [Edit]

[System.CLSCompliant(false)]
public bool CanAccess (Mono.Unix.Native.AccessModes mode)

Parameters

mode
A Mono.Unix.Native.AccessModes specifying what kind of access the process would like. [Edit]

Returns

A bool specifying whether or not the process can access UnixFileSystemInfo.FullName. [Edit]

Remarks

Note that this method is subject to external race conditions -- just because you can access UnixFileSystemInfo.FullName now doesn't mean you'll be able to access it later, as another thread/process may change the access permissions. [Edit]

Requirements

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