This is my script to create a directory called SongFolder @ the PersistentDataPath. This is code I found via the web to work for android because apparently the PC code would be different. However, it doesn’t work on Android. It only works on PC.
So,
How do I create a directory in my Android PersistentDataPath directory on ANDROID phones/devices?
//PATH CHECK / BUILD PATH
if (!firstRunSettings)
{
songPath = (Application.persistentDataPath + "/SongFolder");//create songFolder datapath
if (!Directory.Exists(songPath))// SongFolder doesn't exists, create it
{
Directory.CreateDirectory(songPath);
}
firstRunSettings = true;
}