Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Scan ¶
func Scan(ctx context.Context, root string, patterns, skipDirs []string) (paths, symlinkMatches []string, err error)
Scan returns two sorted slices and an error:
- paths: absolute paths of regular files whose basename matches a pattern.
- symlinkMatches: absolute paths of symlinks whose basename matches a pattern (these are NOT masked — WalkDir does not follow symlinks — callers should warn the user that protection is incomplete).
Directories named in skipDirs (bare name) are pruned. Empty patterns returns (nil, nil, nil) without walking.
Precondition: root absolute and EvalSymlinks-evaluated; patterns valid filepath.Match patterns (validated by projectconfig.Load).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.