Skip to content

Support XRootD filesystems #428

@ikrommyd

Description

@ikrommyd

It would be nice if universal pathlib supported XRootD filesystems where the fsspec implementation of the filesystem lives in https://github.com/scikit-hep/fsspec-xrootd.
It's an extremely common filesystem in particle physics.

It currently does not work with the default implementation fallback and feels like it's getting confused with the path

In [1]: from upath import UPath

In [2]: p = UPath("root://cmseos.fnal.gov//store/user/ikrommyd/")
/Users/iason/micromamba/envs/awkward-coffea/lib/python3.13/site-packages/upath/core.py:318: UserWarning: UPath 'root' filesystem not explicitly implemented. Falling back to default implementation. This filesystem may not be tested.
  upath_cls = get_upath_class(protocol=pth_protocol)

In [3]: str(p)
Out[3]: 'root:///store/user/ikrommyd'

In [4]: str(p.parent)
Out[4]: 'root:///'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions