private boolean shouldExclude(FileStatus f) {
    if (!f.isDirectory()) {
      return false;
    }
    if (excludeDirs != null && !excludeDirs.isEmpty()) {
      for (String dirPart : excludeDirs) {
        // since we make excludeDirs end with '/',
        // if a path contains() the dirPart, the path should be excluded
        if (f.getPath().toString().contains(dirPart)) {
          return true;
        }
      }
    }
    return false;
  }
Check if a path should not perform clear
hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/CleanerChore.java