Skip to content

Commit

Permalink
Merge pull request #1710 from delameter/patch-1
Browse files Browse the repository at this point in the history
Fixes multihardlink directory styling on unix
  • Loading branch information
xiaq authored Jul 16, 2023
2 parents 96752af + 2e1a1e1 commit 9104632
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cli/lscolors/stat_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ import (
)

func isMultiHardlink(info os.FileInfo) bool {
if info.IsDir() {
return false
}
return info.Sys().(*syscall.Stat_t).Nlink > 1
}

0 comments on commit 9104632

Please sign in to comment.