sql/src/main/java/com/github/sadikovi/hadoop/riff/RiffOutputCommitter.java
/**
   * List all part files recursively, or return the first file found.
   * @param fs file system
   * @param fileStatus current directory file status or file
   * @param fetchOneFile whether or not to return just first found file or traverse fully
   * @return list of file statuses for part files
   */
List all part files recursively, or return the first file found.
@param fs file system
@param fileStatus current directory file status or file
@param fetchOneFile whether or not to return just first found file or traverse fully
@return list of file statuses for part files
List all part files recursively or return the first file found . @param fs file system @param fileStatus current directory file status or file @param fetchOneFile whether or not to return just first found file or traverse fully @return list of file statuses for part files
protected static List<FileStatus> listFiles(
      FileSystem fs,
      FileStatus fileStatus,
      boolean fetchOneFile) throws IOException {
    List<FileStatus> files = new ArrayList<FileStatus>();
    recurListFiles(fs, fileStatus, files, fetchOneFile);
    return files;
  }
protected static List < FileStatus > listFiles ( FileSystem fs , FileStatus fileStatus , boolean fetchOneFile ) throws IOException { List < FileStatus > files = new ArrayList < FileStatus > ( ) ; recurListFiles ( fs , fileStatus , files , fetchOneFile ) ; return files ; }
List all part files recursively, or return the first file found.
List all part files recursively or return the first file found .