It appears that IsMusic() has a problem.
After it decides that a file is not music (or audio), you can no longer open it for writing.
StringToFile() also fails, but deleting with DeleteFile() does work, so I guess you could do that first as a workaround.
Example:
Code: Select all
StringToFile("1", "testfile")
StringToFile("2", "testfile")
DebugPrint("IsMusic() returns ", IsMusic("testfile"))
StringToFile("3", "testfile")