pathvalidation

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePath

func ValidatePath(path string, projectRoot string) error

ValidatePath checks that path is safe to write within projectRoot. Returns nil if safe, or an error describing the violation.

The function is read-only — it never writes or creates anything on disk. It never attempts to sanitize or fix an invalid path; it rejects and reports.

Types

This section is empty.

Jump to

Keyboard shortcuts

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