Java Path File Check nio isEqualPath(final Path file1, final String topLevelAbsolutePath)

Here you can find the source of isEqualPath(final Path file1, final String topLevelAbsolutePath)

Description

is Equal Path

License

Open Source License

Declaration

private static boolean isEqualPath(final Path file1,
            final String topLevelAbsolutePath) 

Method Source Code

//package com.java2s;

import java.nio.file.Path;

public class Main {
    private static boolean isEqualPath(final Path file1,
            final String topLevelAbsolutePath) {
        return topLevelAbsolutePath.equals(file1.toAbsolutePath()
                .toString());/*from   www  .ja  v a  2 s .  c o m*/
    }
}

Related

  1. isDirEmpty(final Path directory)
  2. isEmpty(Path dir)
  3. isEmptyDir(Path dir)
  4. isEmptyDir(Path path)
  5. isEmptyDir(Path path)
  6. isExcluded(Set excludes, Path path)
  7. isFile(final String path)
  8. isFile(Path file)
  9. isFileHidden(Path file)