Skip to main content

file_url_path

Function file_url_path 

Source
pub fn file_url_path(url: &str) -> Result<&str, ObjectStoreBuilderError>
Expand description

Normalized filesystem path from a file:// URL: scheme stripped and the Windows drive-letter slash removed (file:///C:/xC:/x).

§Errors

Returns ObjectStoreBuilderError::InvalidUrl when the scheme is missing or the path is empty.