diff --git a/melamine/classes.py b/melamine/classes.py index c95c012..b4ab46a 100644 --- a/melamine/classes.py +++ b/melamine/classes.py @@ -20,13 +20,13 @@ async def get_all_hardlinks(paths: Set[Path]) -> None: logger.info(f"Getting hardlinks for {path}") hardlink_count = 0 path.hardlinks = set() - async for link in path.fs_handler.get_hardlinks(path): + async for link in path.fs_handler.get_hardlinks(path.absolute_path): hardlink_count += 1 path.hardlinks.add(link) 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.contents) + path.contents = await get_all_hardlinks(path.contents) return paths