-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] Introduce a appDataDir path #5263
Comments
It would be worth considering a cohesive scheme for all the different app-specific directories - for example, config, data, cache, and probably others. I would suggest:
Personally I think the current |
I agree current |
|
Wow, that was fast! Thank you, everybody! |
Describe the problem
I am building an application using Tauri in which I would like to store some data in a file on the hard drive, so I was looking into the
fs
module. For available paths I have found this documentation. I feel like the correct path for storing my data on a linux system would be thedataDir
path. However, this path only contains the path to the folder, without a folder for the application itself as inappDir
, therefore I have to handle that on my own, which is a tedious task. Additionally I think that this is so common, that it would warrant another path preset.Describe the solution you'd like
I would like to be able to use something like
BaseDirectory.AppData
, that stores data in a folder for my own application withindataDir
.Alternatives considered
No alternatives other than leaving it the way it is and handle that in the application itself come to my mind.
Additional context
No response
The text was updated successfully, but these errors were encountered: