stat

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunStat

func RunStat(w io.Writer, args []string, opts StatOptions) error

func RunTouch

func RunTouch(args []string, _ TouchOptions) error

Types

type StatInfo

type StatInfo struct {
	Name    string      `json:"name"`
	Size    int64       `json:"size"`
	Mode    os.FileMode `json:"mode"`
	ModTime string      `json:"mod_time"`
	IsDir   bool        `json:"is_dir"`
}

type StatOptions

type StatOptions struct {
	JSON bool // output as JSON
}

StatOptions configures the stat command behavior

type TouchOptions

type TouchOptions struct{}

TouchOptions configures the touch command behavior

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL