Ios Phonegap 3.5文件下载/移动不工作

Ios Phonegap 3.5文件下载/移动不工作,ios,cordova,download,fileapi,Ios,Cordova,Download,Fileapi,我正忙着将Phonegap应用程序从3.3升级到3.5目前一切正常,但文件下载、打开不起作用 function downloadFile(url, filename, fail, downloadDone) { window.fail = fail; window.downloadDone = downloadDone; window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function onFileSyste

我正忙着将Phonegap应用程序从3.3升级到3.5目前一切正常,但文件下载、打开不起作用

function downloadFile(url, filename, fail, downloadDone) {
    window.fail = fail;
    window.downloadDone = downloadDone;
    window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function onFileSystemSuccess(
        fileSystem) {
        var fileTransfer = new FileTransfer();
        fileTransfer.download(url, window.filePath + filename, function(theFile) {
            window.downloadDone();
        }, function(error) {
            window.fail(error);
        });
    }, window.fail);
}

function setupFilePath(callBack) {
    window.callback = callBack;
    window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function onFileSystemSuccess(
        fileSystem) {
        fileSystem.root.getFile("dummy.html", {
            create: true,
            exclusive: false
        }, function gotFileEntry(fileEntry) {
            var sPath = fileEntry.root.replace("dummy.html", "");
            window.filePath = sPath;
            var fileTransfer = new FileTransfer();
            fileEntry.remove();
            dataDir = fileSystem.root.getDirectory(sPath + 'cordapp', {
                create: true
            });
            window.filePath = sPath + 'cordapp/';
            console.log("FILE PATH IS: " + window.filePath)
            callBack()
        }, null);
    }, null);
}
获取应用程序无法创建目录的错误我做错了什么?有没有办法不让它备份到iCloud