From 587905ed9acfcffc868b6d48a73b18f65db9b5bc Mon Sep 17 00:00:00 2001 From: Darryl Nixon Date: Sun, 16 Jul 2023 11:00:11 -0700 Subject: [PATCH] Traverse ShredDir contents, not ShredDir --- melamine/classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/melamine/classes.py b/melamine/classes.py index 87766c8..c6922dd 100644 --- a/melamine/classes.py +++ b/melamine/classes.py @@ -25,7 +25,7 @@ async def get_all_hardlinks(paths: Set[Path]) -> None: logger.info(f"Found hardlink: {link}") logger.info(f"Found {hardlink_count} hardlinks for {path.absolute_path}") if isinstance(path, ShredDir): - await get_all_hardlinks(path) + await get_all_hardlinks(path.contents) return paths