Skip to content
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

adlfs: don't append / to dirs in find() and fix glob() #448

Merged
merged 1 commit into from
Dec 23, 2023

Conversation

efiop
Copy link
Member

@efiop efiop commented Dec 22, 2023

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
Comment on lines -883 to -886
def find(self, path, withdirs=False, prefix="", **kwargs):
return sync(
self.loop, self._find, path=path, withdirs=withdirs, prefix=prefix, **kwargs
)
Copy link
Member Author

Choose a reason for hiding this comment

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

This was redundant.

Comment on lines -963 to -964
if not with_parent:
dirs.pop(target_path, None)
Copy link
Member Author

Choose a reason for hiding this comment

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

with_parent is not present in fsspec/gcsfs/s3fs nor it is explicitly tested anywhere. It was getting in the way, so I've removed it as well.

@efiop efiop merged commit f9f4013 into fsspec:main Dec 23, 2023
4 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.

1 participant