Documentation
¶
Overview ¶
Package safefile provides portable path validation and root-scoped file access.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
Check rejects existing symlinks and special files; os.Root separately enforces containment at open/rename time, including if a symlink changes after this check.
func CheckRoot ¶
CheckRoot rejects symlinks in the configured root or its existing ancestors. The configured root is a trusted caller-selected boundary; OpenRoot pins it for subsequent operations. Missing components are allowed for output root creation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.