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:
1 parent
4758ef621c
commit
87c994b9de
7 files changed
+85
-21
No files matched your search
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user