private OriginalDirectory listOriginalFiles() throws IOException {
      boolean isRecursive = context.conf.getBoolean(FileInputFormat.INPUT_DIR_RECURSIVE,
          context.conf.getBoolean("mapred.input.dir.recursive", false));

      List<FileInfo> originals = HdfsUtils
          .listFileStatusWithId(fs.get(), dir, Ref.from(fs instanceof DistributedFileSystem), isRecursive, null)
          .stream().map(f -> new FileInfo(f, ORIGINAL_BASE)).collect(Collectors.toList());
      return new OriginalDirectory(originals, fs.get(), dir);
    }
For plain or acid tables this is the root of the partition (or table if not partitioned).
For MM table this is delta/ or base/ dir.  In MM case applying of the ValidTxnList that
{@link AcidUtils#getAcidState(FileSystem, Path, Configuration, ValidWriteIdList, Ref, boolean)}
normally does has already been done in
{@link HiveInputFormat#processPathsForMmRead(List, Configuration, ValidWriteIdList, List, List)}
ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java