pub fn validate_path(name: &str, data_dir: &Path) -> Result<()>
Validate a memory file path, rejecting traversal attacks and unsafe names.