Skip to content
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

[request] Fix conflicting info on fs scopes #2901

Open
1 task
NectoT opened this issue Oct 24, 2024 · 0 comments
Open
1 task

[request] Fix conflicting info on fs scopes #2901

NectoT opened this issue Oct 24, 2024 · 0 comments
Labels
discuss Does this require further discussion before it's dealt with? enhancement Does it add or improve content?

Comments

@NectoT
Copy link

NectoT commented Oct 24, 2024

Question you want answered

How do I allow to access a file?

Where did you look for an answer?

I was reading a page about File System plugin in the Guides section, where I got to the "Security" section. The section pointed me to fs javascript reference, where an example of adding allowed scopes looks like this:

{
  "plugins": {
    "fs": {
      "scope": ["$APPDATA/databases/*"]
    }
  }
}

Note that there was no indication of which file to add this snippet to.

I unsuccessfully tried inserting this snippet into tauri.conf.json, after which I had to google the right way. It turned out that at the very bottom of the File System guide page there is a section about permissions, which did specify which file to tweak and does seem to work.

So, as I understand it, the snippet in the fs reference page is plain wrong

Page URL

https://v2.tauri.app/plugin/file-system/#examples

Additional context

No response

Are you willing to work on this yourself?

  • I want to work on this myself
@NectoT NectoT added discuss Does this require further discussion before it's dealt with? enhancement Does it add or improve content? labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Does this require further discussion before it's dealt with? enhancement Does it add or improve content?
Projects
Status: 🪵 Backlog
Development

No branches or pull requests

1 participant