-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better double asterisks **
support
#1329
Merged
martindurant
merged 31 commits into
fsspec:master
from
john-jam:better-double-asterisk-support
Aug 22, 2023
Merged
Changes from 29 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
a85d689
chore: add posix compliance tests
john-jam 23ece4f
feat: make glob posix compliant
john-jam 63aeb0f
fix: remove unnecessary trailing slash removal
john-jam 0883de9
Support the **/* case
john-jam d42d09a
feat: support maxdepth for globs
john-jam bd41c2f
chore: refactor tests and add maxdepth tests
john-jam 1c1aa0d
fix: pass the maxdepth option to glob in expand_path
john-jam 1abb2c6
fix: remove unused is_dir option in other_paths
john-jam 1b2463c
fix: avoid copying unwanted directories
john-jam 31424bd
feat: refactor copy, get and put tests
john-jam 69bb15f
feat: add missing tests
john-jam 2dc4338
fix: fix other tests to include root dirs
john-jam 45f828d
fix: fix other repos import
john-jam 2f33e1b
fix: fix missing tests with root dir
john-jam 6362058
fix: add missing async code changes
john-jam 52b0e65
tmp: use personal repos for friends
john-jam b20ce62
fix: update the wront exist test case
john-jam 8680aef
fix: update http glob implementation
john-jam ee514b6
fix: handle file not found when removing glob target test
john-jam 37aabad
fix: test empty ls results only against fs that supports empty dir
john-jam 9559ab6
chore: remove unecesary fixture
john-jam 2b24204
fix: skip bash posix tests on windows
john-jam 8747cb5
fix: add sanitize path fixture for win tests
john-jam cdde7f4
fix: typo
john-jam 7733691
fix: split glob tests into scenario and edge cases tests
john-jam 2e555b2
chore: fix mypy config
john-jam c1b0739
fix: skip bash tests if bash or globstar is not available
john-jam 69bb36a
fix: skip python glob tests on windows
john-jam 2a089d3
Revert "tmp: use personal repos for friends"
john-jam 85b7ae0
fix: use relative paths for posix tests
john-jam 495d986
fix: remove comment
john-jam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing _strip_protocol from the flow here is likely the cause of all the windows errors, because for LocalFileSystem, it also converts windows-style paths to posix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what caused this issue: #1322
How about using
make_posix_path
helper here then?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed the windows tests by using
make_path_posix
on the expected outputs in the tests when required: https://github.com/john-jam/filesystem_spec/actions/runs/5807521471/job/15742517288