Skip to content

[feat] Introduce a appDataDir path #5263

@danrot

Description

@danrot

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 the dataDir path. However, this path only contains the path to the folder, without a folder for the application itself as in appDir, 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 within dataDir.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions