docs: def root(path: Union[str, pathlib.Path]) -> _Root:
      """
      Retrieve a root directory object from a path.
  
      :param path: The path string or Path object.
      :return: The created root object.
      """
      return _Root.from_path(_normalise_path(path))