Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Name string
Path string
IsDir bool
ContainerID string
DisplayName string
Size int64
Mode fs.FileMode
ModTime time.Time
// LinkTarget is set for symbolic links.
LinkTarget string
}
func (Info) ModTimeString ¶
ModTimeString formats the modification time like ls -l: "Oct 12 14:03" for the last six months, "Oct 12 2025" otherwise.
func (Info) PermString ¶
PermString formats the mode like ls -l, e.g. "drwxr-xr-x" or "lrwxrwxrwx". fs.FileMode.String differs from ls for symlinks ("L") and the special bits.
func (Info) SizeString ¶
Click to show internal directories.
Click to hide internal directories.