Why does app_local_data_dir() return a Result? #10098
Replies: 1 comment
-
Nope. Tauri never creates folders it doesn't need itself.
Yes. This is not why it returns an error btw, some of the path apis are platform dependend (none of those that are currently exposed in v2 though), or the the inner dirs library which Tauri uses simply fails to get the base paths for us. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new to Rust and Tauri. I was wondering why
app_local_data_dir()
returns a Result. Shouldn't I as a developer expect that Tauri manages these folders for me and ensures that they exist, when I need to access them? Consequently, if they do not exist, am I supposed to create them manually? (Which I do not think is a good idea.) Hence, should Tauri not fix the problem or panic, instead of asking me what to do about it?Beta Was this translation helpful? Give feedback.
All reactions