diff --git a/src-tauri/src/watchers/delta.rs b/src-tauri/src/watchers/delta.rs index 6f646c371..71671876a 100644 --- a/src-tauri/src/watchers/delta.rs +++ b/src-tauri/src/watchers/delta.rs @@ -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,