code: public static FileStatus getTableFileStatus(Path rootPath, String table) {
          return new FileStatus(0, true, 1, 1024, -1, -1, DIRECTORY_PERMISSION, null, null,
                  getTablePath(rootPath, table));
      }
docs: Returns a FileStatus for a table.