Udostępnij za pośrednictwem


Files.GetPosixFilePermissions(IPath, LinkOption[]) Method

Definition

Returns a file's POSIX file permissions.

[Android.Runtime.Register("getPosixFilePermissions", "(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ljava/util/Set;", "", ApiSince=26)]
public static System.Collections.Generic.ICollection<Java.Nio.FileNio.Attributes.PosixFilePermission>? GetPosixFilePermissions (Java.Nio.FileNio.IPath? path, params Java.Nio.FileNio.LinkOption[]? options);
[<Android.Runtime.Register("getPosixFilePermissions", "(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ljava/util/Set;", "", ApiSince=26)>]
static member GetPosixFilePermissions : Java.Nio.FileNio.IPath * Java.Nio.FileNio.LinkOption[] -> System.Collections.Generic.ICollection<Java.Nio.FileNio.Attributes.PosixFilePermission>

Parameters

path
IPath

the path to the file

options
LinkOption[]

options indicating how symbolic links are handled

Returns

the file permissions

Attributes

Remarks

Java documentation for java.nio.file.Files.getPosixFilePermissions(java.nio.file.Path, java.nio.file.LinkOption).

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