Documentation
¶
Overview ¶
Package filetree provides functionality for creating ASCII tree representations of directory structures. It converts a list of file paths into a visual tree format that clearly shows the hierarchy and relationships between directories and files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileTree ¶
type FileTree struct {
// contains filtered or unexported fields
}
FileTree creates ASCII tree representations of directory structures. It maintains an internal map-based representation of the directory hierarchy that can be rendered into a string format.
func New ¶
New creates a new FileTree instance and processes the provided paths into an internal tree structure. Each path is split into its components and added to the tree while maintaining the hierarchical relationships.
Click to show internal directories.
Click to hide internal directories.