Temporary folder


#1

Hi all,
I need to save files in a temporary directory. To do so I use fs.knownFolders.temp()
It works fine for iOS emulator where I get a path like:
/Users/franck/Library/Developer/CoreSimulator/Devices/B7F58F08-413F-4AE3-9628-6D2A90242C18/data/Containers/Data/Application/3B636307-F91E-4B5A-9BE7-F301EF958F43/Library/Caches/ …

Though, on android the path is something like
/data/user/0/com.lpub.wdapp/cache/ …

The problem is that the emulator doesn’t have right to access/create this path from the root and so my code fails. Is there a way to specify a temporary directory when running the android emulator?


#2

Are you using Google Emulators or some third parties?


#3

I’m using the Google emulator.