Skip to main content

validate_file_write

Function validate_file_write 

Source
pub fn validate_file_write(path: &Path) -> Result<(), &'static str>
Expand description

Validate a file path for write safety. Returns Err with reason if the write should be blocked. Inspired by claw-code’s file_ops.rs safety checks.