From ea7c2cbf78a056e87c714ca595a8a5f3cf87ae6a Mon Sep 17 00:00:00 2001 From: Walidoux Date: Fri, 28 Apr 2023 14:42:10 +0100 Subject: [PATCH] refactor(tauri): Update tauri config permissions The "fs-remove-dir" feature has been added to Tauri dependencies, enabling the directory deletion operation. Similar changes were made to the tauri.conf.json file. --- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 906992b..8513270 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -13,7 +13,7 @@ edition = "2021" tauri-build = { version = "1.2", features = [] } [dependencies] -tauri = { version = "1.2", features = ["fs-create-dir", "fs-exists", "fs-read-dir", "fs-write-file", "http-all", "path-all", "window-close", "window-minimize", "window-start-dragging"] } +tauri = { version = "1.2", features = ["fs-create-dir", "fs-exists", "fs-read-dir", "fs-remove-dir", "fs-write-file", "http-all", "path-all", "window-close", "window-minimize", "window-start-dragging"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 0d0a656..afc03f6 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -24,6 +24,7 @@ "createDir": true, "exists": true, "readDir": true, + "removeDir": true, "writeFile": true, "scope": ["$DOWNLOAD/**/*"] },