dirs

package
v0.0.0-...-a58dc02 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirSizeBytes

func DirSizeBytes(dirPath string) (int64, error)

DirSize returns the size of a directory in bytes.

func PrintResults

func PrintResults(dirs []Dir)

Types

type Dir

type Dir struct {
	Path            string
	Depth           int
	BytesSize       int64
	PrettyBytesSize string
}

func ReadDirDepth

func ReadDirDepth(dirPath string) ([]Dir, error)

Jump to

Keyboard shortcuts

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