security

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL