Function create_dir

Source
pub fn create_dir(dir: &Path)
Expand description

create dir if does not exists
if dir is file, will be create parent dir
if create fail, will be call log::error
see log::error, try_create_dir