Skip to content

Commit ecb3d3c

Browse files
committed
fix(async): fix _glob kwargs passing
1 parent 97c0a0f commit ecb3d3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fsspec/asyn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,7 @@ async def _glob(self, path, maxdepth=None, **kwargs):
781781
min_idx = min(idx_star, idx_qmark, idx_brace)
782782

783783
detail = kwargs.pop("detail", False)
784+
withdirs = kwargs.pop("withdirs", True)
784785

785786
if not has_magic(path):
786787
if await self._exists(path, **kwargs):
@@ -810,7 +811,7 @@ async def _glob(self, path, maxdepth=None, **kwargs):
810811
depth = None
811812

812813
allpaths = await self._find(
813-
root, maxdepth=depth, withdirs=True, detail=True, **kwargs
814+
root, maxdepth=depth, withdirs=withdirs, detail=True, **kwargs
814815
)
815816

816817
pattern = glob_translate(path + ("/" if ends_with_sep else ""))

0 commit comments

Comments
 (0)