code: @Nullable
    Directory getRoot(Name name) {
      DirectoryEntry entry = tree.getRoot(name);
      return entry == null ? null : (Directory) entry.file();
    }
docs: Returns the root directory with the given name or {@code null} if no such directory exists.