iCloud Drive and MemoryMappedFile

I have a client who had iCloud Drive enabled… and was running into an issue, while testing our Standalone plugin, where when trying to map a file into a MemoryMappedFile the data pointer would be NULL… the path to the file trying to be mapped shows a local path and File::existsAsFile() returns true… but File::hasReadAccess() returns false.

    if (! srcFile.existsAsFile())
        {
        Logger::writeToLog ("File doesn't exist");
        return false;
        }

    if (srcFile.hasReadAccess())
        Logger::writeToLog ("Input File HAS read access permissions!");
    else
        {
        Logger::writeToLog ("*** Input File DOES NOT HAVE read access permissions!");
        return false;
        }

    MemoryMappedFile    mf (srcFile, MemoryMappedFile::readOnly);
    
    if (mf.getData() == nullptr)
        Logger::writeToLog ("MemoryMappedFile data is NULLPTR");

Is there any way to know if a file is local or on the iCloud Drive? File::getFullPathName() shows it on the local drive…???

Cheers,

Rail