Discover Packages
github.com/synseqack/aict
tools
du
package
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: Apr 6, 2026
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Config struct {
Summarize bool `flag:"" desc:"Show only total for each argument"`
HumanSize bool `flag:"" desc:"Show sizes in human-readable format"`
All bool `flag:"" desc:"Count all files, not just directories"`
MaxDepth int `flag:"" desc:"Maximum depth to show entries"`
XML bool
JSON bool
Plain bool
Pretty bool
}
type DuEntry struct {
XMLName xml .Name `xml:"entry"`
Path string `xml:"path,attr"`
Absolute string `xml:"absolute,attr"`
SizeBytes int64 `xml:"size_bytes,attr"`
SizeHuman string `xml:"size_human,attr"`
Depth int `xml:"depth,attr"`
}
type DuError struct {
XMLName xml .Name `xml:"error"`
Code int `xml:"code,attr"`
Msg string `xml:"msg,attr"`
Path string `xml:"path,attr"`
}
type DuResult struct {
XMLName xml .Name `xml:"du"`
Timestamp int64 `xml:"timestamp,attr"`
TotalBytes int64 `xml:"total_bytes,attr"`
TotalHuman string `xml:"total_human,attr"`
Paths []DuEntry `xml:"entry,omitempty"`
Errors []DuError `xml:"error,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.