code: public static FileStatus getRootFileStatus(Path rootPath) {
          return new FileStatus(0, true, 1, 1024, -1, -1, DIRECTORY_PERMISSION, null, null, rootPath);
      }
docs: Returns a FileStatus for the given root path.