Documentation
¶
Index ¶
- func BToMb(b uint64) uint64
- func FileExists(filename string) bool
- func GUnZipFile(sourcePath, targetPath string) error
- func GetFileInfo(path string) (string, error)
- func GetFileSizeMod(path string) (string, string, int64, time.Time)
- func GetHomeDirPath() string
- func HumanizeSize(size int64) string
- func PrintMemUsage()
- func SplitFileName(filename string, searchTerm string) (string, string, string)
- type EventAction
- type EventRecord
- type ObjectType
- type SearchResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func GUnZipFile ¶
func GetFileInfo ¶
GetFileInfo returns a compact, aligned key/value summary of a file's metadata, suitable for display in a tooltip. Labels are left-aligned in a fixed column so values line up under a monospace font.
func GetFileSizeMod ¶
GetFileSizeMod returns the size and modification time of a file both formatted for display and raw, so callers can sort on them without a second stat.
func GetHomeDirPath ¶
func GetHomeDirPath() string
func HumanizeSize ¶
HumanizeSize formats a byte count as a short human-readable string.
func PrintMemUsage ¶
func PrintMemUsage()
Types ¶
type EventAction ¶
type EventAction int
const ( ItemCreated EventAction = iota ItemDeleted )
func (EventAction) String ¶
func (e EventAction) String() string
type EventRecord ¶
type ObjectType ¶
type ObjectType int
const ( ItemIsFile ObjectType = iota ItemIsDir ItemIsSymlink ItemIsNamedPipe ItemIsSocket ItemIsCharDevice ItemIsBlockDevice )
type SearchResult ¶
type SearchResult struct {
Fullpath string
ObjectType ObjectType
}
Click to show internal directories.
Click to hide internal directories.