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