Fix async for / await in mount_bound...

This commit is contained in:
Darryl Nixon 2023-07-16 16:14:44 -07:00
parent 935c647624
commit 9e92baba1c

View file

@ -38,7 +38,7 @@ async def mount_bound_rglob(path: AsyncPath, mount: AsyncPath, pattern: str, ign
if await find_mount(path) == mount: if await find_mount(path) == mount:
logger.info(f"Skipping differently mounted subdir: {path} (wanted {mount}))") logger.info(f"Skipping differently mounted subdir: {path} (wanted {mount}))")
return return
for subpath in await path.glob(pattern): async for subpath in path.glob(pattern):
async for subitem in mount_bound_rglob(subpath, mount, pattern): async for subitem in mount_bound_rglob(subpath, mount, pattern):
yield subitem yield subitem
yield path yield path