public static Path getFileIdPath(Path path, long fileId) {
    // BI/ETL split strategies set fileId correctly when HDFS is used.
    return (fileId > 0) ? new Path(HDFS_ID_PATH_PREFIX + fileId) : path;
  }
List filestatuses in the given directory.
In recursive mode all files are returned, otherwise directories are skipped.
@param fs FileSystem
@param path directory to list
@param filter optional filter
@param recursive do recursive listing
@return
@throws IOException
ql/src/java/org/apache/hadoop/hive/ql/io/HdfsUtils.java