Cache data file location As part of my app I want ...
# compose-desktop
e
Cache data file location As part of my app I want to create some files to cache data and/or save configurations. Is there a preferred way to do this? I naively created a folder in the root and added files there, which ofc works when running from the IDE, but when I run as a MacOS app it's not happy, and I imagine it either being a file permission issue or that I'm not allowed to create a folder in that location, which in some sense also is permission related.
c
I recommend using appdirs
that will figure out where to put things depending on the platform its running on so you don't need to think about it
or at least get you the directories
e
I'll have a look, thanks!