Share via


FileSystemProvider.GetPath(URI) Method

Definition

Return a Path object by converting the given URI.

[Android.Runtime.Register("getPath", "(Ljava/net/URI;)Ljava/nio/file/Path;", "GetGetPath_Ljava_net_URI_Handler", ApiSince=26)]
public abstract Java.Nio.FileNio.IPath? GetPath (Java.Net.URI? uri);
[<Android.Runtime.Register("getPath", "(Ljava/net/URI;)Ljava/nio/file/Path;", "GetGetPath_Ljava_net_URI_Handler", ApiSince=26)>]
abstract member GetPath : Java.Net.URI -> Java.Nio.FileNio.IPath

Parameters

uri
URI

The URI to convert

Returns

The resulting Path

Attributes

Remarks

Return a Path object by converting the given URI. The resulting Path is associated with a FileSystem that already exists or is constructed automatically.

The exact form of the URI is file system provider dependent. In the case of the default provider, the URI scheme is "file" and the given URI has a non-empty path component, and undefined query, and fragment components. The resulting Path is associated with the default FileSystems#getDefault defaultFileSystem.

If a security manager is installed then a provider implementation may require to check a permission. In the case of the FileSystems#getDefault default file system, no permission check is required.

Java documentation for java.nio.file.spi.FileSystemProvider.getPath(java.net.URI).

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