filetree

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL