Documentation
¶
Index ¶
Constants ¶
View Source
const NTFSSbMagic = 0x5346544e
Variables ¶
View Source
var InoFilterInstance = InoFilter{ // contains filtered or unexported fields }
Functions ¶
Types ¶
type FileInfo ¶
type FileInfo struct {
// contains filtered or unexported fields
}
FileInfo defines a custom fs.FileInfo implementation for wrapping the results from the file info system calls.
type Info ¶
type Info struct {
Path string `json:"path"`
Volume string `json:"volume"`
FSName string `json:"fsName"`
TotalBytes uint64 `json:"total"`
FreeBytes uint64 `json:"free"`
UsedBytes uint64 `json:"used"`
UsedPercent float64 `json:"usedPercent"`
}
Info contains information about a single drive/volume/mount. The data can be fetched using a corresponding operating system syscall against a target entry.
type InoFilter ¶ added in v0.1.0
type InoFilter struct {
// contains filtered or unexported fields
}
InoFilter filters files by inode value, preventing the double calculation of the same space on the disk. The filter must be manually reset before each new volume scan.
Click to show internal directories.
Click to hide internal directories.