Documentation
¶
Overview ¶
Package path is used to represent path info objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Header ¶
func Header() string
Header returns a comma separated list of the expected columns that will be outputted by Info.String().
func HeaderWithHash ¶
func HeaderWithHash() string
Header returns a comma separated list of the expected columns that will be outputted for paths with a file signature hash.
Types ¶
type Info ¶
type Info struct {
Id Id // The unique identifier
Path string // The file system path
Size uint64 // Size in bytes, if it is a file
Mode fs.FileMode // Type and permission bits
ModTime time.Time // Last modification time
}
Describe a found path while scanning.
func InfoFromWalk ¶
Create the path info from the results of a file system walk [filepath.WalkDir] or file.Walker.
Click to show internal directories.
Click to hide internal directories.