fix ignoredir

This commit is contained in:
Darryl Nixon 2023-07-16 14:17:52 -07:00
parent 3282d5a655
commit b1e9053bb4

View file

@ -73,7 +73,7 @@ async def main(job: argparse.Namespace) -> bool:
# checking for . and .. should not be neccessary w/ rglob
tasks = []
async for item in mount_point.rglob("*"):
if any(str(item).startswith(path) for path in job.ignoredir):
if any(str(item).startswith(str(path)) for path in job.ignoredir):
continue
tasks.append(check_inode_and_unlink(item, inodes))
done, _ = await asyncio.wait(tasks)