code: @Override
      public boolean isSameFile(final Path path1, final Path path2) throws IOException {
  
          // Only equal if pointing to same FS
          final FileSystem fs1 = path1.getFileSystem();
          final FileSystem fs2 = path2.getFileSystem();
          if (fs1 != fs2) {
              return false;
          }
  
          // Same if the normalized form points to the same location
          final String normalized1 = path1.normalize().toString();
          final String normalized2 = path2.normalize().toString();
          return normalized1.equals(normalized2);
      }
docs: {@inheritDoc}
  
  @see java.nio.file.spi.FileSystemProvider#isSameFile(java.nio.file.Path, java.nio.file.Path)