pub async fn ensure_dir_exists(path: &Path) -> Result<()>
Ensure a directory exists, creating it if necessary