From a9f64bf749634fe8f64c14e567f6e5b54b0d4c3c Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 12 Nov 2013 16:01:24 +0000 Subject: [PATCH] --- js/libs/gal/gal.filesystem.js | 6 +++++- js/main.js | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/js/libs/gal/gal.filesystem.js b/js/libs/gal/gal.filesystem.js index 2bf629a1..6c5f40df 100644 --- a/js/libs/gal/gal.filesystem.js +++ b/js/libs/gal/gal.filesystem.js @@ -204,7 +204,10 @@ var fileTransfer = new FileTransfer(); fileTransfer.download(url, fileEntry.fullPath, function(entry) { lookupTable[key] = entry.toURL(); - callback(); + entry.setMetadata(function(entry) { + callback(); + }, failCallback, {'com.apple.MobileBackup': 1}); + }, failCallback); }, failCallback); }); @@ -251,6 +254,7 @@ var that = this; // And then recreate it var fs = this.fs; + createDir_(fs.root, ROOT_DIR.split('/'), function(res) { // Create a directory for the root of the GAL fs.root.getDirectory(ROOT_DIR, {create: true}, function(dirEntry) { diff --git a/js/main.js b/js/main.js index 41c76bef..29c14a10 100644 --- a/js/main.js +++ b/js/main.js @@ -50,7 +50,6 @@ try { }); function loadPhonegap() { - var cordova = 'data/cordova.js'; var cordovaStorage = window.localStorage.getItem('cordova'); if (cordovaStorage) { -- 2.39.5