when writing gb/wd, make sure directory is there [2]

This commit is contained in:
Nikita Galaiko 2023-03-14 16:12:10 +01:00
parent 98d945fa43
commit 3a528c96f6
No known key found for this signature in database
GPG Key ID: EBAB54E845BA519D

View File

@ -216,7 +216,7 @@ pub(crate) fn register_file_change(
})?; })?;
// save file contents corresponding to the deltas // save file contents corresponding to the deltas
fs::create_dir_all(project.wd_path().join(relative_file_path).parent())?; fs::create_dir_all(project.wd_path().join(relative_file_path).parent().unwrap())?;
fs::write( fs::write(
project.wd_path().join(relative_file_path), project.wd_path().join(relative_file_path),
current_file_contents, current_file_contents,