Write File Anywhere is the System #9041
-
The app I am trying to build is reading folders (could be located anywhere on the user's computer) and then building a json file describing each folder and saving it in that folder root. It has to be in that directory because the json file is used by another application. I am wondering if I'm missing some docs, because this seems like a common need. I'm not sure if there is some config item that will allow the fs module to access or if this needs to be written in Rust. Thanks for any guidance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
In backend main.rs:
In frontend:
|
Beta Was this translation helpful? Give feedback.
-
You can use the dialog plugin to achieve this, where the user gets to choose what directory to select. |
Beta Was this translation helpful? Give feedback.
You can use the dialog plugin to achieve this, where the user gets to choose what directory to select.
https://v2.tauri.app/reference/javascript/dialog/#open