Skip to main content

resolve_source_path

Function resolve_source_path 

Source
pub fn resolve_source_path(source: &str, assets_dir: Option<&Path>) -> String
Expand description

Resolve a source string into a filesystem path: bare filenames are searched for under assets_dir and fall back to sitting directly in it, so a miss still names the file the read error will report. With no assets dir the source is returned verbatim, which is again the path the read error names.