diskusage

package
v0.1.119 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SizeOnDisk added in v0.1.116

func SizeOnDisk(info fs.FileInfo) int64

SizeOnDisk returns bytes allocated for a file, less than its size for sparse, partially downloaded torrent files

Types

type DiskStatus

type DiskStatus struct {
	All  int64
	Used int64
	Free int64
}

DiskStatus ...

func DiskUsage

func DiskUsage(path string) (*DiskStatus, error)

DiskUsage shows disk usage of path/disk

Jump to

Keyboard shortcuts

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