We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcfa71d commit 007e57dCopy full SHA for 007e57d
src/lib/src/api/remote/commits.rs
@@ -594,11 +594,12 @@ pub async fn download_commit_entries_db_to_path(
594
util::fs::remove_dir_all(&full_unpacked_path)?;
595
} else {
596
log::debug!("{} creating {:?}", current_function!(), full_unpacked_path);
597
- std::fs::create_dir_all(&full_unpacked_path)?;
+ std::fs::create_dir_all(&full_unpacked_path.parent().unwrap())?;
598
}
599
600
// Move the tmp path to the full path
601
log::debug!("renaming {:?} to {:?}", tmp_path, full_unpacked_path);
602
+
603
std::fs::rename(
604
tmp_path.join(HISTORY_DIR).join(commit_id),
605
&full_unpacked_path,
0 commit comments