Language

Os.Access(String, Int32) Method

Definition

See access(2).

[Android.Runtime.Register("access", "(Ljava/lang/String;I)Z", "")]
public static bool Access(string? path, int mode);
[<Android.Runtime.Register("access", "(Ljava/lang/String;I)Z", "")>]
static member Access : string * int -> bool

Parameters

path
String

The path whose existence or access permissions are checked.

mode
Int32

The access checks to perform: F_OK, or a combination of R_OK, W_OK and X_OK.

Returns

true when the access check succeeds; an error throws ErrnoException.

Attributes

Exceptions

Remarks

See access(2).

Java documentation for android.system.Os.access(java.lang.String, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to