Skip to content

Conversation

@bbockelm
Copy link
Collaborator

Apache, when generating a HTML listing of a local directory, will suffix directory names with a trailing slash. This PR tweaks the XRootD directory listing to do the same and adds a corresponding integration test.

Beyond matching common practice, the HTTP fsspec plugin in the Python ecosystem uses the trailing slash as a heuristic to indicate a directory. With this change, Python users should be able to recursively list directories in XRootD. While not strictly required, this makes a significant improvement for the lives of Python users.

Apache, when generating a HTML listing of a local directory,
will suffix directory names with a trailing slash.  This PR
tweaks the XRootD directory listing to do the same and adds
a corresponding integration test.

Beyond matching common practice, the HTTP fsspec plugin in
the Python ecosystem uses the trailing slash as a heuristic
to indicate a directory.  With this change, Python users
should be able to recursively list directories in XRootD.
While not strictly required, this makes a significant
improvement for the lives of Python users.
@bbockelm bbockelm requested a review from ccaffy February 10, 2025 14:08
Copy link
Contributor

@ccaffy ccaffy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks !

@amadio amadio added this to the 5.8.0 milestone Feb 13, 2025
@amadio amadio merged commit 81ddc91 into xrootd:master Feb 13, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants