ValidateFileAccess checks if we can read the file and it meets size requirements Now uses enhanced security validation with path traversal and symlink checks
(path string)
| 250 | // ValidateFileAccess checks if we can read the file and it meets size requirements |
| 251 | // Now uses enhanced security validation with path traversal and symlink checks |
| 252 | func ValidateFileAccess(path string) error { |
| 253 | // Use the enhanced security validator from internal package |
| 254 | return validate.ValidateInputFile(path) |
| 255 | } |
| 256 | |
| 257 | // expandFileArgs is a lowercase alias for ExpandFileArgs for backward compatibility |
| 258 | func expandFileArgs(args []string) ([]string, error) { |