URL::DownloadTask: Downloaded file exists but doesn't exist

Hey guys! I have an issue with URL::DownloadTask on iOS. The download itself succeeds, but then this call to NSFileManager moveItemAtURL: fails.

For debugging, I added two assertions at the start of didFinishDownloadingToURL:

// Passes
const File sourceFile(nsStringToJuce(location.path));
jassert(sourceFile.exists());

// Fails
jassert([fileManager fileExistsAtPath:location.path]);

This is strange. According to juce::File (which uses the POSIX access function), the file exists. According to NSFileManager, it doesn’t exist.

Has anyone seen an issue like this with NSFileManager? My guess that it has something to do with permissions. Any help would be appreciated :slight_smile:

(bump) I thought this went away after an iPad reboot, but it’s been coming up again every once in a while.