Skip to main content

build_path

Function build_path 

Source
pub fn build_path(
    entities: &Entities,
    patterns: &[&str],
    strict: bool,
) -> Option<String>
Expand description

Build a file path given entities and a list of path patterns.

Supports list values in entities — returns a Vec of paths when any entity has multiple values (Cartesian product).

Returns None if no pattern matches all mandatory entities.