public static void logFileSystemState(final FileSystem fs, final Path root, Logger log)
    throws IOException {
    log.debug("File system contents for path {}", root);
    logFSTree(log, fs, root, "|-");
  }
Log the current state of the filesystem from a certain root directory
@param fs   filesystem to investigate
@param root root file/directory to start logging from
@param log  log to output information
@throws IOException if an unexpected exception occurs
hbase-common/src/main/java/org/apache/hadoop/hbase/util/CommonFSUtils.java