Documentation
¶
Overview ¶
Package files provides reusable file scanning and filtering logic. It is used by both the TUI file picker and the HTTP /api/sessions/{id}/files endpoint.
Index ¶
Constants ¶
View Source
const MaxScanEntries = 5000
MaxScanEntries is the cap on total entries returned by a single scan.
Variables ¶
View Source
var SkipDirs = map[string]bool{ ".git": true, "node_modules": true, "vendor": true, ".next": true, "dist": true, "build": true, "__pycache__": true, ".venv": true, ".cache": true, ".idea": true, ".vscode": true, }
SkipDirs are directory names that are always skipped during scanning.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
Entry represents a file or directory relative to a workspace root.
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner caches file entries per workDir. Thread-safe. Callers create their own instance; there is no package-level global.
func (*Scanner) Invalidate ¶
Invalidate forces a re-scan for the given workDir on the next call to Scan.
Click to show internal directories.
Click to hide internal directories.