Skip to content

Commit

Permalink
feat: drop handling hard link in TreeDumpEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijie-yang committed Jul 23, 2024
1 parent d3a7921 commit a798078
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/testutil/treedump.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,7 @@ func TreeDumpEntry(entry *fsutil.Entry) string {
return fmt.Sprintf("dir %#o", fperm)
case fs.ModeSymlink:
return fmt.Sprintf("symlink %s", entry.Link)
case 0:
// Hard link.
if entry.Link != "" {
return fmt.Sprintf("hard link %#o %s", fperm, entry.Link)
}
// Regular file.
case 0: // Regular file.
if entry.Size == 0 {
return fmt.Sprintf("file %#o empty", entry.Mode.Perm())
} else {
Expand Down

0 comments on commit a798078

Please sign in to comment.