#Access ALL files

2 messages · Page 1 of 1 (latest)

limpid oak
#

Hello! I am working on a tool in which the user needs to select a folder from which the app should read/write data to and from. Does Tauri support that?
We are currently in the phase of looking for different ways to achieve what we need.

The folder could potentially be a dropbox, or an external hard drive - so outside of baseDirectory mentioned in the file-system plugin

gusty otter
#

If you use tauri's dialog then it will automatically extend the scope. To save that between app restarts you can use the persisted-scope plugin.
You can also extend the scope yourself at runtime in rust if needed.
With those 2 options you don't have to worry about the static scope in the permissions.
All fs apis accept absolute paths so you don't need to worry about basedir either.