Structs§
- Directory
Entry - Directory entry information for tree generation
- Local
File System Provider - Local file system provider implementation
Traits§
- File
System Provider - Trait for abstracting file system operations for tree generation
Functions§
- generate_
directory_ tree - Generate a tree view of a directory structure using a generic file system provider
- generate_
password - Generate a secure password with alphanumeric characters and optional symbols
- handle_
large_ output - Handle large output: if the output has >=
max_lines, save the full content to session storage and return a string showing only the first or lastmax_lineslines with a pointer to the saved file. ReturnsOk(final_string)orErr(error_string)on failure. - is_
supported_ file - Check if a directory entry represents a supported file type
- matches_
gitignore_ pattern - Check if a path matches a gitignore pattern
- pattern_
matches_ glob - Simple glob pattern matching for basic cases
- read_
gitignore_ patterns - Read .gitignore patterns from the specified base directory
- sanitize_
text_ output - Sanitize text output by removing control characters while preserving essential whitespace
- should_
include_ entry - Check if a directory entry should be included based on gitignore patterns and file type support