@Override public boolean isParent(File folder,File file){
  return folder.equals(file.getParentFile());
}

@ Override public boolean isParent ( File folder , File file ) { return folder . equals ( file . getParentFile ( ) ) ; }
checks whether folder is the same as file . getparentfile ( ) .
