Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // PathSeparator can be used to override the operating system separator. PathSeparator = string(os.PathSeparator) )
Functions ¶
This section is empty.
Types ¶
type FileTree ¶
FileTree represents a directory in a filesystem-tree structure.
func (FileTree) AddDir ¶
AddDir adds a directory to a FileTree. If the path includes subdirectories they are created as necessary.
func (FileTree) AddFile ¶
AddFile adds a file to a FileTree. If the path includes subdirectories they are created as necessary.
func (FileTree) At ¶
At returns a new FileTree rooted at the given path.
func (FileTree) Remove ¶
Remove an entry from a FileTree.
type VisitFunc ¶
VisitFunc is the type for a callback to visit the entries on a directory and its subdirectories.
type VisitOrder ¶
type VisitOrder int8
VisitOrder is a two-valued flag used to control how directories are visited.
const ( // PreOrder has directories visited before their contents. PreOrder VisitOrder = iota // PostOrder has directories visited after their contents. PostOrder )
Source Files
¶
- filetree.go
- monitor.go
- nonrecursive.go
- recursive.go
Click to show internal directories.
Click to hide internal directories.