I have an application that needs to create a file in runtime in the private folder. The application can be installed on both phone memory and memory card. First I tried to use RFs::PrivatePath to locate folder, but that did not seem to work when application was installed on memory card. So after that I tried to combine that path with PathInfo::PhoneMemoryRootPath and PathInfo::MemoryCardRootPath. But then I ended up with wrong path when installing on phone memory, seems like c:\data\private\<sid>\ was the path when using this. So how can i resolve this?
Before 3rd Edition I used the same folder as the .app-file and Application::AppFullName and BaflUtils:riveAndPathFromFullName to find this folder.
Edit: I see now that i can create the folder with RFs::CreatePrivatePath, but will this folder be removed when the application is uninstalled if it is uninstalled from memory card and the folder is on phone memory?