Skip to main content

canonical_model_path_string

Function canonical_model_path_string 

Source
pub fn canonical_model_path_string(path: &Path) -> String
Expand description

The canonical path as the string the file_path column stores.

Falls back to the literal path when the file cannot be resolved, because a row whose file has since been deleted still has to round-trip through the database. Reach for canonical_model_path anywhere a failure to resolve should be visible to the caller rather than papered over.