From 992c3bad6d964183fea8d8cfde68284195bf4c59 Mon Sep 17 00:00:00 2001 From: Darryl Nixon Date: Sun, 16 Jul 2023 14:42:11 -0700 Subject: [PATCH] await error --- melamine/shred.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/melamine/shred.py b/melamine/shred.py index 0bf3ce5..6c98b1a 100644 --- a/melamine/shred.py +++ b/melamine/shred.py @@ -75,7 +75,7 @@ async def main(job: argparse.Namespace) -> bool: tasks = [] # scandir/glob/rglob doesn't play nice with FileNotFound errors, # so let's avoid them entirely for now in /proc, /dev, and /sys - if any((mount_point / path).exists() for path in ("/proc", "/dev", "/sys")): + if any(await (mount_point / path).exists() for path in ("/proc", "/dev", "/sys")): # Traverse every directory in mount_point recursively except /proc, /dev, and /sys async for item in mount_point.glob("*"): if await item.is_dir():