Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileTreeItem ¶
type FileTreeItem struct {
Src string `yaml:"src"`
Path string `yaml:"path"`
Name string `yaml:"name"`
State string `yaml:"state"`
IsDir bool `yaml:"is_dir"`
}
FileTreeItem represents a single item in a file tree
type Walker ¶
type Walker struct {
// contains filtered or unexported fields
}
Walker handles file tree operations
func NewWalker ¶
func NewWalker(pathExpander *pathutil.PathExpander) *Walker
NewWalker creates a new file tree walker
func (*Walker) GetFileTree ¶
func (w *Walker) GetFileTree(path string, currentDir string, context map[string]interface{}) ([]FileTreeItem, error)
GetFileTree walks a directory tree and returns all files and directories
Click to show internal directories.
Click to hide internal directories.