disk

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCleanTargets = []string{".venv", "venv", "node_modules", ".cache"}

Functions

func DirSize

func DirSize(path string) (int64, error)

func HumanBytes

func HumanBytes(size int64) string

Types

type CleanResult

type CleanResult struct {
	Removed    []string
	FreedBytes int64
}

func CleanProjectRoot

func CleanProjectRoot(projectPath string, targets []string) (CleanResult, error)

Jump to

Keyboard shortcuts

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