Ensure backup resets the Bangle first
parent
8c290cfa95
commit
07d1e8abd4
|
|
@ -7,7 +7,10 @@ function bangleDownload() {
|
||||||
Progress.show({title:"Scanning...",sticky:true});
|
Progress.show({title:"Scanning...",sticky:true});
|
||||||
var normalFiles, storageFiles;
|
var normalFiles, storageFiles;
|
||||||
console.log("Listing normal files...");
|
console.log("Listing normal files...");
|
||||||
Comms.listFiles({sf:false}).then(f => {
|
Comms.reset()
|
||||||
|
.then(() => Comms.showMessage("Backing up..."))
|
||||||
|
.then(() => Comms.listFiles({sf:false}))
|
||||||
|
.then(f => {
|
||||||
normalFiles = f;
|
normalFiles = f;
|
||||||
console.log(" - "+f.join(","));
|
console.log(" - "+f.join(","));
|
||||||
console.log("Listing StorageFiles...");
|
console.log("Listing StorageFiles...");
|
||||||
|
|
@ -38,8 +41,9 @@ function bangleDownload() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
console.log("Listing StorageFiles...");
|
|
||||||
return promise;
|
return promise;
|
||||||
|
}).then(() => {
|
||||||
|
return Comms.showMessage(Const.MESSAGE_RELOAD);
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
return zip.generateAsync({type:"blob"});
|
return zip.generateAsync({type:"blob"});
|
||||||
}).then(content => {
|
}).then(content => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue