pub fn is_safe_file_id(id: &str) -> bool
Returns true if a user-provided file ID is safe to use as a path component. Rejects empty strings, .., slashes, and dotfiles.
..