From 9e92baba1ca7e97871778db193647c4942548f08 Mon Sep 17 00:00:00 2001 From: Darryl Nixon Date: Sun, 16 Jul 2023 16:14:44 -0700 Subject: [PATCH] Fix async for / await in mount_bound... --- melamine/fileops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/melamine/fileops.py b/melamine/fileops.py index b0be666..6ad2025 100644 --- a/melamine/fileops.py +++ b/melamine/fileops.py @@ -38,7 +38,7 @@ async def mount_bound_rglob(path: AsyncPath, mount: AsyncPath, pattern: str, ign if await find_mount(path) == mount: logger.info(f"Skipping differently mounted subdir: {path} (wanted {mount}))") 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): yield subitem yield path