Function validate_file_size
Source pub fn validate_file_size(path: &Path) -> PatternsResult<u64>
Expand description
Validate file size against limits.
§Arguments
path - The path to the file
§Returns
The file size in bytes if within limits.
§Errors
PatternsError::FileNotFound if file doesn’t exist
PatternsError::FileTooLarge if file exceeds MAX_FILE_SIZE