- Home /
Is there something wrong with Application.persistentDataPath (on Samsung s6 running Android 5.1.1) ?
I'm trying to write files to the SD card. Application.persistentDataPath
returns /storage/emulated/0/Android/data/com.mettavr/files/
However there is no such 0 folder:
$ abd shell
$ ls /storage/emulated
legacy
So all I got is a IsolatedStorageException: Could not find a part of the path
. If I manually replace Application.persistentDataPath
by /storage/emulated/legacy/Android/data/com.mettavr/files/
it works fine (not sure this is what I should use because of the legacy thing but it runs so...)
Is that a known thing? Am I missing something?
Comment
Answer by dora-gt · Feb 08, 2018 at 04:11 PM
Unity says it is fixed in 5.6.0, but I can reproduce it on 5.6.4. So it is not fixed actually. Please Unity.