code: protected boolean isSymbolicLink(File file) throws IOException {
      if (IS_WINDOWS) {
        return false;
      }
  
      File canonical = file;
      if (file.getParent() != null) {
        canonical = new File(file.getParentFile().getCanonicalFile(), file.getName());
      }
      return !canonical.getCanonicalFile().equals(canonical.getAbsoluteFile());
    }
docs: Returns whether the given file is a symbolic link.
  
  @since 1.13