fn try_create_dir<P>(path: P) -> Result<bool>where P: AsRef<Path>,
Try to create a dir.
Returns false if the dir already exists.