kotlin-stdlib / kotlin.io.path / java.nio.file.Path / isSameFileAs isSameFileAs JVM JRE7 1.5 fun Path . isSameFileAs ( other : Path ) : Boolean (source) Checks if the file located by this path points to the same file or directory as other . See Also Files.isSameFile