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