FileSystem на Cordova 3.4.0 завершается ошибкой «Не удалось создать целевой файл»

Я недавно обновил свой проект iOS Cordova с 2.7.0 до 3.4.0.

После обновления файловая система доступа нарушена. (кажется, работает в симуляторе, хотя?)

Я получаю сообщение об ошибке «Не удалось создать целевой файл», я погуглил и решил сменить «полный путь» на «toURL ()», но безрезультатно. Я действительно не знаю, что попробовать дальше?

вот мой код загрузки

window.requestFileSystem(
LocalFileSystem.PERSISTENT, 0,

function onFileSystemSuccess(fileSystem) {
fileSystem.root.getFile(
    "dummy.html", {
    create: true,
    exclusive: false
},

function gotFileEntry(fileEntry) {
    var sPath = fileEntry.toURL().replace("dummy.html", "");
    var fileTransfer = new FileTransfer();
    fileEntry.remove();

    fileTransfer.download(
        "https://dl.dropbox.com/u/13253550/db02.xml",
    sPath + "database.xml",

    function (theFile) {
        console.log("download complete: " + theFile.toURI());
        showLink(theFile.toURI());
        setTimeout(function () {
            checkConnection();
        }, 50);
    },

    function (error) {
        console.log("download error source " + error.source);
        console.log("download error target " + error.target);
        console.log("upload error code: " + error.code);
    });
},
fail);
},
fail);

Ответы на вопрос(2)

Ваш ответ на вопрос