get_hardlinks take Shred*, not AsyncPaths

This commit is contained in:
Darryl Nixon 2023-07-16 13:39:16 -07:00
parent efce306977
commit 0f6b8bd438

View file

@ -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}")