public static boolean hasTokenFile(File tokenFile) throws IOException {
  return hasToken(tokenFile.getParentFile(),tokenFile.getName());
}

public static boolean hasTokenFile ( File tokenFile ) throws IOException { return hasToken ( tokenFile . getParentFile ( ) , tokenFile . getName ( ) ) ; }
returns true iff the given directory has a file with the given name .
