mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-29 22:13:34 +03:00
* Fix https://github.com/tauri-apps/tauri/issues/7973 * Fix https://github.com/tauri-apps/tauri/issues/7973 * Fix https://github.com/tauri-apps/tauri/issues/7973
This commit is contained in:
parent
1241014a46
commit
21cdbb41a3
5
.changes/fix-incomplete-writeFile.md
Normal file
5
.changes/fix-incomplete-writeFile.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": 'patch:bug'
|
||||
---
|
||||
|
||||
Set the correct `truncate` option on `OpenOptions` so that `write_file` can completely overwrite existing files.
|
@ -188,6 +188,7 @@ impl Cmd {
|
||||
.append(append)
|
||||
.write(true)
|
||||
.create(true)
|
||||
.truncate(!append)
|
||||
.open(&resolved_path)
|
||||
.with_context(|| format!("path: {}", resolved_path.display()))
|
||||
.map_err(Into::into)
|
||||
|
Loading…
Reference in New Issue
Block a user