pub fn safe_path(path: &str) -> Cow<'_, str>
Expand description

Prevents path traversals. Ex: ‘/hello/../../../data.db’ => ‘/data.db’