Skip to content

Commit 35697b4

Browse files
author
sgref
committed
Fix _glob_find returns nothing if called with a glob path
1 parent 5054950 commit 35697b4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

adlfs/spec.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,9 @@ async def _glob_find(self, path, maxdepth=None, withdirs=False, **kwargs):
10491049
kwargs are passed to ``ls``.
10501050
"""
10511051
# TODO: allow equivalent of -name parameter
1052+
1053+
path = path.rstrip('*')
1054+
path = path.rstrip('/')
10521055
path = self._strip_protocol(path)
10531056
out = dict()
10541057
detail = kwargs.pop("detail", False)

0 commit comments

Comments
 (0)