Skip to content

fix(epath): preserve cloud URI schemes in fsspec walks - #831

Open
codewithfourtix wants to merge 1 commit into
google:mainfrom
codewithfourtix:fix-fsspec-walk-cloud-schemes
Open

codewithfourtix wants to merge 1 commit into
google:mainfrom
codewithfourtix:fix-fsspec-walk-cloud-schemes

Conversation

@codewithfourtix

Copy link
Copy Markdown

Fsspec strips the URI scheme from walk roots, so epath.Path('gs://bucket/root').walk() currently returns paths interpreted as local files. Restore the input protocol on each yielded root, matching the existing glob behavior, while preserving directory-list identity for pruning.

Adds coverage for GCS, S3, Azure, Hugging Face, and top-down pruning. Isolated source checks: 1/10 cases pass before, 10/10 afterward, including unchanged local roots. Filesystem I/O mocked; full suite and cloud integration not run.

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.

1 participant