Skip to main content

is_safe_file_id

Function is_safe_file_id 

Source
pub fn is_safe_file_id(id: &str) -> bool
Expand description

Returns true if a user-provided file ID is safe to use as a path component. Rejects empty strings, .., slashes, and dotfiles.