Is there a cross-platform way of determining 1) the app (the one that is being compiled) internal directory, 2) the app storage directory and 3) the app cache directory? I found the crate directories, but it requires the app name to retrieve the respective directories from (link).
This will return something like the executable path, right? What I'm looking for is the path of the app internal and storage directory, not the path of where it was installed or ran. For example, on Android, if I recall correctly, the app directory is usually at file://storage/emulated/0/Android/com.qux.foo, while on Windows it is usually located at AppData/Roaming/....
I mistyped at this part, so I fixed the original post.
Also keep in mind that different OSs will have different well-known folders. For example, the dirs::runtime_dir() function will return None for anything except Linux because /run/user/ is a Linux-only concept.