pub(crate) fn file_url_segments_to_pathbuf( host: Option<&str>, segments: Split<'_, char>, ) -> Result<PathBuf, ()>