From 25dd14c9114a0f1dfbb48d9281bd3f9d97d2dbbf Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Thu, 15 Jan 2026 16:53:09 +0800 Subject: feat: Enhance file system capabilities in default.json by adding permissions for reading, checking existence, and writing text files --- src-tauri/capabilities/default.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src-tauri/capabilities') diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json index 4d8b907..ea3fd7b 100644 --- a/src-tauri/capabilities/default.json +++ b/src-tauri/capabilities/default.json @@ -13,6 +13,19 @@ "core:path:default", "core:window:default", "shell:allow-open", - "dialog:default" + "dialog:default", + "fs:default", + { + "identifier": "fs:allow-read", + "allow": [{ "path": "**" }] + }, + { + "identifier": "fs:allow-exists", + "allow": [{ "path": "**" }] + }, + { + "identifier": "fs:allow-write-text-file", + "allow": [{ "path": "**" }] + } ] } -- cgit v1.2.3-70-g09d2