From 0f6b8bd438866bc94035a3c914310e52a0f80e09 Mon Sep 17 00:00:00 2001 From: Darryl Nixon Date: Sun, 16 Jul 2023 13:39:16 -0700 Subject: [PATCH] get_hardlinks take Shred*, not AsyncPaths --- melamine/classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/melamine/classes.py b/melamine/classes.py index 08789c7..58fefca 100644 --- a/melamine/classes.py +++ b/melamine/classes.py @@ -192,7 +192,7 @@ async def get_all_hardlinks(paths: Set[Union[ShredFile, ShredDir]]) -> None: logger.info(f"Getting hardlinks for {path.absolute_path}") hardlink_count = 0 path.hardlinks = set() - async for link in path.fs_handler.get_hardlinks(path.absolute_path): + async for link in path.fs_handler.get_hardlinks(path): hardlink_count += 1 path.hardlinks.add(link) logger.info(f"Found hardlink: {link}")