Function create_dir_if_not_exists

Source
pub fn create_dir_if_not_exists<P: AsRef<Path>>(
    path: P,
    ctx: &str,
) -> Result<bool>
Expand description

Returns true if the directory was created, false if already existed. ctx should be something like “queues base directory”, made part of the error message.