mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-24 13:37:34 +03:00
when writing gb/wd, make sure directory is there [2]
This commit is contained in:
parent
98d945fa43
commit
3a528c96f6
@ -216,7 +216,7 @@ pub(crate) fn register_file_change(
|
||||
})?;
|
||||
|
||||
// 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(
|
||||
project.wd_path().join(relative_file_path),
|
||||
current_file_contents,
|
||||
|
Loading…
Reference in New Issue
Block a user