Skip to content

Instantly share code, notes, and snippets.

@dangnhdev
Created February 14, 2016 12:28
Show Gist options
  • Save dangnhdev/2e724ebd6c36c6e587ff to your computer and use it in GitHub Desktop.
Save dangnhdev/2e724ebd6c36c6e587ff to your computer and use it in GitHub Desktop.
try {
boolean check = Files.isSameFile(path01, path02);
if(check){
System.out.println("The paths locate the same file!"); //true
} else {
System.out.println("The paths does not locate the same file!");
}
} catch (IOException e) {
System.out.println(e.getMessage());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment