pub fn ensure_dir_exists<P>(path: P) -> Result<(), ScribeError>where P: AsRef<Path>,
Ensure directory exists, creating if necessary