Replies: 2 comments 1 reply
-
If it's just a json file you can simply put it next to your html, css, js and read the json file through js fetch api. more help |
Beta Was this translation helpful? Give feedback.
1 reply
-
Import import { path } from '@tauri-apps/api';
(async () => {
const appDataPath = await path.appDataDir();
console.log(appDataPath); // C:\Users\<current_user>\AppData\Roaming\<package_name>
})(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My use case: I want to ship two static external files (JSON) with the app. The user could open a dialog and find the two static files already shown in the picker.
But I dont know which path I should point the picker to. Is there an api to access the default system data folder reserved for the app, or something like that?
Thanks very much!
Beta Was this translation helpful? Give feedback.
All reactions