stats

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStat

type FileStat struct {
	Name  string    `json:"name"`
	IsDir bool      `json:"isDir,omitempty"`
	Kids  FileStats `json:"kids,omitempty"`
	Size  int64     `json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*FileStat) Count added in v0.3.0

func (f *FileStat) Count() int

func (*FileStat) Extensions

func (f *FileStat) Extensions() map[string]int

func (*FileStat) FullPath

func (f *FileStat) FullPath() string

func (*FileStat) Largest

func (f *FileStat) Largest() *FileStat

func (*FileStat) TotalSize

func (f *FileStat) TotalSize() int64

type FileStats

type FileStats []*FileStat

func GetFileStats

func GetFileStats(fs filesystem.FileLoader, pth string, logger util.Logger) (FileStats, error)

func (FileStats) Count added in v0.3.0

func (f FileStats) Count() int

func (FileStats) Extensions

func (f FileStats) Extensions() map[string]int

func (FileStats) Largest

func (f FileStats) Largest() *FileStat

func (FileStats) TotalSize

func (f FileStats) TotalSize() int64

Jump to

Keyboard shortcuts

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