[feat] Introduce a appDataDir path #5263
Labels
good first issue
Good for newcomers
priority: 3 low
scope: api.js
The @tauri-apps/api npm package
status: backlog
Issue is ready and we can work on it
type: feature request
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: