mirror of
https://github.com/DarrylNixon/melamine.git
synced 2024-04-22 06:27:20 -07:00
await error
This commit is contained in:
parent
4215f4dd2c
commit
992c3bad6d
1 changed files with 1 additions and 1 deletions
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue