Traverse ShredDir contents, not ShredDir

This commit is contained in:
Darryl Nixon 2023-07-16 11:00:11 -07:00
parent a4f9b485fd
commit 587905ed9a

View file

@ -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