Partager via


Files.ReadSymbolicLink(IPath) Method

Definition

Reads the target of a symbolic link (optional operation).

[Android.Runtime.Register("readSymbolicLink", "(Ljava/nio/file/Path;)Ljava/nio/file/Path;", "", ApiSince=26)]
public static Java.Nio.FileNio.IPath? ReadSymbolicLink (Java.Nio.FileNio.IPath? link);
[<Android.Runtime.Register("readSymbolicLink", "(Ljava/nio/file/Path;)Ljava/nio/file/Path;", "", ApiSince=26)>]
static member ReadSymbolicLink : Java.Nio.FileNio.IPath -> Java.Nio.FileNio.IPath

Parameters

link
IPath

the path to the symbolic link

Returns

a Path object representing the target of the link

Attributes

Remarks

Reads the target of a symbolic link (optional operation).

If the file system supports symbolic links then this method is used to read the target of the link, failing if the file is not a symbolic link. The target of the link need not exist. The returned Path object will be associated with the same file system as link.

Java documentation for java.nio.file.Files.readSymbolicLink(java.nio.file.Path).

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