code: public static Set<Path> getDeepestLevelRenamedDirsWithFileExistence (FileSystem fs, Set<Path> paths) throws IOException {
      Set<Path> renamedDirs = Sets.newHashSet();
      for (FileStatus fileStatus : FileListUtils.listFilesRecursively(fs, paths)) {
        if (fileStatus.getPath().getParent().toString().endsWith(MRCompactor.COMPACTION_RENAME_SOURCE_DIR_SUFFIX)) {
          renamedDirs.add(fileStatus.getPath().getParent());
        }
      }
  
      return renamedDirs;
    }
docs: Get all the renamed directories from the given paths
  They are deepest level containing directories whose name has a suffix {@link MRCompactor#COMPACTION_RENAME_SOURCE_DIR_SUFFIX}
  Also each directory needs to contain at least one file so empty directories will be excluded from the result