fn check_filename(call: &str, filename: &str) -> Result<(), ApiError>
A filename that breaks the rules for a memory file is the caller’s to correct.