-
Notifications
You must be signed in to change notification settings - Fork 364
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
Make glob
consistent with glob.glob
#1382
Conversation
Should be easy to fix the failing tests:
(I can open PRs there after this one gets approved.) |
So I understand, is this the only change in the behaviour of glob that we expect from your change? |
Yes, that's correct. |
@mariosasko , do you have an opinion on #1394 ? |
Commented on the issue :) |
Due to the test breakages downstream, I will release before merging, and then merge maybe on Monday, so that users won't see this until we've tidied up the other libraries too. |
Sounds good! |
Will you be available to make the PR to dask? I will merge when you have time to do it, so that we don't cause their CI to break for too long. gcsfs is less urgent, and I can do that anyway. |
PR opened in dask :) |
Do you intend to fix gcsfs, or will I need to deal with it? |
I linked a |
This makes it consistent with localfs/gcsfs/s3fs and also makes glob work after changes in fsspec/filesystem_spec#1382
This makes it consistent with localfs/gcsfs/s3fs and also makes glob work after changes in fsspec/filesystem_spec#1382
This makes it consistent with localfs/gcsfs/s3fs and also makes glob work after changes in fsspec/filesystem_spec#1382
For the record: turns out this also broke adlfs but we didn't have daily tests to notice (which were also broken for another reason 🤦♂️ ), so I've added those and fixed the tests. |
Do you mean that things are now in a good place? |
@martindurant Yes, all good now, no action needed. Here's the main PR fixing that fsspec/adlfs#448 and a few more (fsspec/adlfs#447, fsspec/adlfs#446, fsspec/adlfs#445) related to the other reasons for adlfs tests failing. So all fixed now and should be sustainable long term. |
Makes
glob(path)
consistent withglob.glob(path, recursive=True, include_hidden=True)
.This means
**
would only be allowed between the path separators. Although breaking, I think this change is good as the current handling of**
is somewhat unexpected (and not particularly useful?).Also fixes #1380.