Function create_dir_maybe

Source
fn create_dir_maybe<P: AsRef<Path>>(name: P)
Expand description

A convenience function to create a directory if it doesn’t exist, and do nothing if it does. Also prints an error message if the directory creation fails.