-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] path not allowed on the configured scope (on windows) #4130
Comments
more info error occurs even if select file from tauri dialog, or use rust api to set |
I have the same issue with |
I tried again today and now I am using I'm not sure the root cause. I think it might be something to do with @RtthLvr are you still seeing it on your end? |
I cannot reproduce this, maybe you can give us a repo we can use to reproduce it @RtthLvr |
Maybe I have figured my problem out, those files are on my drive that "Windows" doesn't mount on connect, but mounted manually by "Disk Management" (assign drive letter). File permission may be not updated ?
|
I just really figured out my problem, my disk volume has "Hidden" attribute (even drive letter assigned). Here is output from Windows
set attribute "Hidden" to |
I have the same issue with an LTO-Tape library. Is there a way to disable the file security? |
same issue with latest release. readDir lists all the files but then i want to readtextfile and it throws error |
Had the same problem, but I think I've fixed it! You need to add to the "scope" EVERY SINGLE FOLDER you use, for example: "scope": [
"$HOME/.your-app-data/*",
"$HOME/.your-app-data",
"$HOME/*"
] AFAIK the order here counts so you need to move from the deepest nesting up. |
i have the same issue in ubuntu v22.04 TLS |
"fs": { |
@hyy110 |
If it helps someone: "fs": {
"readFile": true,
"writeFile": true,
"readDir": true,
"createDir": true,
"exists": true,
"scope": ["$DOCUMENT/**", "$DOCUMENT/*", "$DOCUMENT"]
} It gives access to everything in the document directory I can read the directory, save new file, open files |
Thanks @studiowebux "fs": {
"all": true,
"readFile": true,
"writeFile": true,
"readDir": true,
"copyFile": true,
"createDir": true,
"removeDir": true,
"removeFile": true,
"renameFile": true,
"exists": true,
"scope": [
"$APPDATA/**",
"$APPDATA/*",
"$APPDATA/",
"$APPDATA"
]
} |
I use |
Describe the bug
on Windows,
path not allowed on the configured scope: D:\path_to_file
occurs when executing anyfs
api on files those aren't in any $... variables even scope is ["**"]Reproduction
Expected behavior
none of the error should be occured
Platform and versions
Environment › OS: Windows 10.0.22000 X64 › Webview2: 101.0.1210.39 › MSVC: - Visual Studio Build Tools 2019 › Node.js: 17.3.0 › npm: 8.3.0 › pnpm: Not installed! › yarn: 1.22.18 › rustup: 1.24.3 › rustc: 1.60.0 › cargo: 1.60.0 › Rust toolchain: stable-x86_64-pc-windows-msvc Packages › @tauri-apps/cli [NPM]: 1.0.0-rc.10 › @tauri-apps/api [NPM]: 1.0.0-rc.5 › tauri [RUST]: 1.0.0-rc.10, › tauri-build [RUST]: 1.0.0-rc.8, › tao [RUST]: 0.8.4, › wry [RUST]: 0.16.2, App › build-type: bundle › CSP: › distDir: Set automatically by Vue CLI plugin › devPath: Set automatically by Vue CLI plugin › framework: Vue.js (Vue CLI) › bundler: Webpack App directory structure ├─ node_modules ├─ public ├─ src └─ src-tauri
Stack trace
No response
Additional context
path.appDir()
works fine but on other paths (those aren't in any $... variables), not working even scope is ["**"]tauri config :
The text was updated successfully, but these errors were encountered: