I am trying to build simple tests to see if files I need (images, videos, audio files) are in my app. Whenever I try to do something such as:
if (![[NSFileManager defaultManager] fileExistsAtPath:@"Menu Loop.mp3"])
{
STFail(@"File does not exist");
}
else
{
NSLog(@"Passed");
}
It says the file does not exist. I can see the file is there, and I know it is failing because the file in the app folder and not in the test folder. Is there a way of getting out of the test folder to test if the files exists without adding all of the files to the test folder? I have tried doing something such as fileExistsAtPath:@"../appfolder/Menu Loop.mp3" to try to navigate out of the test folder, but it unfortunately does not work that way either.
Thanks in advance!