You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(osutil): add SanitizePath for safe subprocess path handling
Add SanitizePath function and SanitizeOpts struct to clean and validate
file paths for safe use with exec.Command and similar functions.
Features:
- Expands ~ to user's home directory
- Cleans path to remove . and .. components
- Resolves to absolute path
- Optional validation for existence, file/directory type, and extensions
Co-Authored-By: Claude Opus 4.5 <[email protected]>