Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirTree ¶
type DirTree struct {
// Root is the root node of the directory tree
Root *DirTreeNode
NodeMap map[string]*DirTreeNode // quickly find node when deleting
}
DirTree is a struct that represents a directory tree
func (*DirTree) DebugDirTree ¶
func (d *DirTree) DebugDirTree()
DebugDirTree Print the directory tree for debug
func (*DirTree) DeleteFile ¶
func (*DirTree) InsertFile ¶
type DirTreeInterface ¶
type DirTreeInterface interface {
// InsertFile inserts a file into the directory tree
InsertFile(path string) bool
// DeleteFile deletes a file from the directory tree
DeleteFile(filename string) bool
// DeleteDir deletes a directory from the directory tree
DeleteDir(path string) bool
// MkDir creates a directory in the directory tree
MkDir(path string) bool
}
type DirTreeNode ¶
type DirTreeNode struct {
// contains filtered or unexported fields
}
DirTreeNode is a struct that represents a directory tree node
Click to show internal directories.
Click to hide internal directories.