What permissions I need if the user can choose any folder? #14152
-
My app ask the user to select a folder when the app launches. Then the user can read/write any file or folder in it, it can also create/delete/rename any file and folder (via the app). What I have to put on |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You only have to allow the APIs you need but don't have to worry about the scope configs (handled by the file picker), so for example to allow the file picker and the readDir method: "permissions": ["dialog:allow-open", "fs:allow-read-dir"] If you miss one of the permissions you may need tauri will throw an error on the respective function call telling which permission(s) will enable that function. |
Beta Was this translation helpful? Give feedback.
You only have to allow the APIs you need but don't have to worry about the scope configs (handled by the file picker), so for example to allow the file picker and the readDir method:
If you miss one of the permissions you may need tauri will throw an error on the respective function call telling which permission(s) will enable that function.