mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-12 22:47:08 +02:00
fix(fs): fix panic due to unwrap & truncate by default (#847)
* fix(fs): fix panic due to unwrap & truncate by default closes #846 * fmt and change file
This commit is contained in:
1 parent
38b5d37b54
commit
c60123093d
5 files changed
+43
-11
No files matched your search
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"fs": "patch"
|
||||
"fs-js": "patch"
|
||||
---
|
||||
|
||||
Add `createNew` option for `writeFile` and `writeTextFile` to create the file if doesn't exist and fail if it does.
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"fs": "patch"
|
||||
"fs-js": "patch"
|
||||
---
|
||||
|
||||
Truncate files when using `writeFile` and `writeTextFile` with `append: false`.
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"fs": "patch"
|
||||
"fs-js": "patch"
|
||||
---
|
||||
|
||||
Fix panic when using `writeFile` or `writeTextFile` without passing an option object.
|
||||
Reference in new issue
Block a user