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 sorted regular-file matches and symlink matches separately. WalkDir does not follow symlinks, so callers must warn that they remain unmasked. Empty patterns skip the walk. root must be absolute and resolved; patterns must be valid filepath.Match globs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.