Skip to content

Commit a679644

Browse files
committed
feat(api): summary on no hardlinks
1 parent 384f882 commit a679644

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/hardlink/hardlink_list/summary.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ impl<Size: size::Size> Display for SummaryDisplay<'_, Size> {
152152
};
153153
}
154154

155+
if inodes == &0 {
156+
return ln!("There are no hardlinks.");
157+
}
158+
155159
write!(f, "Hardlinks detected! ")?;
156160
if exclusive_inodes == inodes {
157161
ln!("No files have links outside this tree")?;

0 commit comments

Comments
 (0)