Skip to content

Commit

Permalink
limit tauri fs api to download folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-may committed Feb 1, 2024
1 parent fd854ae commit 6d98210
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edition = "2021"
tauri-build = { version = "1.5", features = [] }

[dependencies]
tauri = { version = "1.5", features = [ "fs-all", "path-all", "dialog-all", "shell-open"] }
tauri = { version = "1.5", features = [ "fs-write-file", "path-all", "dialog-all", "shell-open"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"all": true
},
"fs": {
"all": true,
"writeFile": true,
"scope": ["$DOWNLOAD/*"]
}, "dialog": {
"all": true
Expand Down

0 comments on commit 6d98210

Please sign in to comment.