public abstract boolean isSameFile (Path path, Path path2) throws IOException

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

Parameters:
path     one path to the file
path2     the other path

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

Exceptions:
IOException     if an I/O error occurs
SecurityException     In the case of the default provider, and a security manager is installed, the checkRead method is invoked to check read access to both files.