FileSystemProvider.IsSameFile(IPath, IPath) Method

Definition

Tests if two paths locate the same file.

[Android.Runtime.Register("isSameFile", "(Ljava/nio/file/Path;Ljava/nio/file/Path;)Z", "GetIsSameFile_Ljava_nio_file_Path_Ljava_nio_file_Path_Handler", ApiSince=26)]
public abstract bool IsSameFile (Java.Nio.FileNio.IPath? path, Java.Nio.FileNio.IPath? path2);
[<Android.Runtime.Register("isSameFile", "(Ljava/nio/file/Path;Ljava/nio/file/Path;)Z", "GetIsSameFile_Ljava_nio_file_Path_Ljava_nio_file_Path_Handler", ApiSince=26)>]
abstract member IsSameFile : Java.Nio.FileNio.IPath * Java.Nio.FileNio.IPath -> bool

Parameters

path
IPath

one path to the file

path2
IPath

the other path

Returns

true if, and only if, the two paths locate the same file

Attributes

Remarks

Tests if two paths locate the same file. This method works in exactly the manner specified by the Files#isSameFile method.

Java documentation for java.nio.file.spi.FileSystemProvider.isSameFile(java.nio.file.Path, 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