public static boolean fileExists(String path) throws IOException {
    Configuration configuration =  getConfiguration();
    FileSystem fileSystem = FileSystem.get(configuration);
    Path filePath = new Path(path);
    return (fileSystem.exists(filePath));
  }
public static boolean fileExists ( String path ) throws IOException { Configuration configuration = getConfiguration ( ) ; FileSystem fileSystem = FileSystem . get ( configuration ) ; Path filePath = new Path ( path ) ; return ( fileSystem . exists ( filePath ) ) ; }
@param path
@return true if "path" exists and is a file (and not a directory)