Support btime in sortby and info (#2042)

* Add support for `btime` in `sortby` and `info`

* Update documentation

* Minor design improvements
This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-07-19 13:06:34 +10:00
1 parent 4758ef621c
commit 87c994b9de
7 files changed
+85 -21

No files matched your search

+2
View File
@@ -323,6 +323,8 @@ func fileInfo(f *file, d *dir, userWidth int, groupWidth int, customWidth int) (
fmt.Fprintf(&info, " %*s", max(len(gOpts.infotimefmtnew), len(gOpts.infotimefmtold)), infotimefmt(f.ModTime()))
case "atime":
fmt.Fprintf(&info, " %*s", max(len(gOpts.infotimefmtnew), len(gOpts.infotimefmtold)), infotimefmt(f.accessTime))
case "btime":
fmt.Fprintf(&info, " %*s", max(len(gOpts.infotimefmtnew), len(gOpts.infotimefmtold)), infotimefmt(f.birthTime))
case "ctime":
fmt.Fprintf(&info, " %*s", max(len(gOpts.infotimefmtnew), len(gOpts.infotimefmtold)), infotimefmt(f.changeTime))
case "perm":