When I use ES2.Exists using only the path as a paramater, it returns true (so the directory indeed exists), but when I try to get the path and the file it returns false, even though I double checked that the file exists in my phone.
Also, when I use ES2.GetFiles with the same path, the array length is zero, like there are no files in that path (I even try to put pdf files and other files inside the path just to check, and still no luck).
This returns false with the path: /data/data/com.PocketRocket.Monkeynauts/files/
Code: Select all
public bool FileExistsInPath(string path)
{
Debug.Log("Exist in " + path + "SAVE_FILE.bytes");
if (ES2.Exists(path + "SAVE_FILE.bytes"))
{
return true;
}
return false;
}
Code: Select all
public bool PathExists(string path)
{
Debug.Log("Path exists: " + path);
if (ES2.Exists(path))
{
return true;
}
return false;
}
Code: Select all
public void GetAllFilesInFolder(string path)
{
string[] files = ES2.GetFiles(path);
Debug.Log("Files size: " + files.Length);
for (int i = 0; i < files.Length; i++)
{
Debug.Log("File name: " + files[i]);
}
Thanks for the help and this great asset!