增加环绕侦察场景适配
This commit is contained in:
@@ -328,6 +328,11 @@ class AsyncFileSystem(AbstractFileSystem):
|
||||
return self._loop
|
||||
|
||||
async def _rm_file(self, path, **kwargs):
|
||||
if (
|
||||
inspect.iscoroutinefunction(self._rm)
|
||||
and type(self)._rm is not AsyncFileSystem._rm
|
||||
):
|
||||
return await self._rm(path, recursive=False, batch_size=1, **kwargs)
|
||||
raise NotImplementedError
|
||||
|
||||
async def _rm(self, path, recursive=False, batch_size=None, **kwargs):
|
||||
@@ -776,6 +781,7 @@ class AsyncFileSystem(AbstractFileSystem):
|
||||
min_idx = min(idx_star, idx_qmark, idx_brace)
|
||||
|
||||
detail = kwargs.pop("detail", False)
|
||||
withdirs = kwargs.pop("withdirs", True)
|
||||
|
||||
if not has_magic(path):
|
||||
if await self._exists(path, **kwargs):
|
||||
@@ -805,7 +811,7 @@ class AsyncFileSystem(AbstractFileSystem):
|
||||
depth = None
|
||||
|
||||
allpaths = await self._find(
|
||||
root, maxdepth=depth, withdirs=True, detail=True, **kwargs
|
||||
root, maxdepth=depth, withdirs=withdirs, detail=True, **kwargs
|
||||
)
|
||||
|
||||
pattern = glob_translate(path + ("/" if ends_with_sep else ""))
|
||||
|
||||
Reference in New Issue
Block a user