Keep getting "path not allowed on the configured scope" with fs.readTextFile
#5990
Unanswered
jaymakes11
asked this question in
Q&A
Replies: 2 comments 6 replies
-
{
"scope": ["**", "**/*", "/**/*"]
} Worked for me |
Beta Was this translation helpful? Give feedback.
6 replies
-
For Tauri 2 this worked great, but I had to include this first: use tauri_plugin_fs::FsExt; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For the life of me I can't get the below to work:
Keep getting:
The relevant section of my Tauri config file:
For the
scope
property I've tried lots of different thing:None of these work.
The only thing I can get to work is using the full path, e.g.
["$HOME/path-relative-to-home-dir/test-file.json5"]
Version details:
Tauri: 1.2.1
@tauri-apps/api: 1.2.0
@tauri-apps/cli: 1.2.2
Rust: 1.65
Node: 16.17.0
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions