diff options
| author | 2026-01-15 16:53:09 +0800 | |
|---|---|---|
| committer | 2026-01-15 17:36:39 +0800 | |
| commit | 25dd14c9114a0f1dfbb48d9281bd3f9d97d2dbbf (patch) | |
| tree | 8ce326fc51d4299d2953961075970c19c02a1d06 | |
| parent | 1c793387f285225c277a440a52552fc6f1735eeb (diff) | |
| download | DropOut-25dd14c9114a0f1dfbb48d9281bd3f9d97d2dbbf.tar.gz DropOut-25dd14c9114a0f1dfbb48d9281bd3f9d97d2dbbf.zip | |
feat: Enhance file system capabilities in default.json by adding permissions for reading, checking existence, and writing text files
| -rw-r--r-- | src-tauri/capabilities/default.json | 15 |
1 files changed, 14 insertions, 1 deletions
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": "**" }] + } ] } |