@setoelkahfi / svara / commits / 3379128

chore: enabled createDir in tauri config

file scope starts from the users home directory

mellbacon committed Jun 14, 2023 at 17:08 UTC 3379128e55b73d47bd589c0d8a0aa4e66e741e82
2 files changed +3 -3
src-tauri/Cargo.toml
+1 -1
@@ -15,7 +15,7 @@ tauri-build = { version = "1.2.1", features = [] }
15 [dependencies]
16 serde_json = "1.0"
17 serde = { version = "1.0", features = ["derive"] }
18 -tauri = { version = "1.2.5", features = ["clipboard-write-text", "dialog-ask", "dialog-confirm", "dialog-open", "dialog-save", "fs-read-dir", "fs-read-file", "fs-rename-file", "fs-write-file", "path-all", "shell-open", "window-center", "window-close", "window-create", "window-hide", "window-maximize", "window-minimize", "window-print", "window-set-decorations", "window-set-focus", "window-set-fullscreen", "window-set-icon", "window-show", "window-start-dragging", "window-unmaximize", "window-unminimize"] }
18 +tauri = { version = "1.2.5", features = ["clipboard-write-text", "dialog-ask", "dialog-confirm", "dialog-open", "dialog-save", "fs-create-dir", "fs-read-dir", "fs-read-file", "fs-rename-file", "fs-write-file", "path-all", "shell-open", "window-center", "window-close", "window-create", "window-hide", "window-maximize", "window-minimize", "window-print", "window-set-decorations", "window-set-focus", "window-set-fullscreen", "window-set-icon", "window-show", "window-start-dragging", "window-unmaximize", "window-unminimize"] }
19 tauri-plugin-fs-watch = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
20 trash = "3.0.2"
21
src-tauri/tauri.conf.json
+2 -2
@@ -25,14 +25,14 @@
25 "fs": {
26 "all": false,
27 "copyFile": false,
28 - "createDir": false,
28 + "createDir": true,
29 "exists": false,
30 "readDir": true,
31 "readFile": true,
32 "removeDir": false,
33 "removeFile": false,
34 "renameFile": true,
35 - "scope": [],
35 + "scope": ["$HOME/**"],
36 "writeFile": true
37 },
38 "path": {