1
0
Fork 0

Ensure backup resets the Bangle first

master
Gordon Williams 2022-03-15 15:24:59 +00:00
parent 8c290cfa95
commit 07d1e8abd4
1 changed files with 6 additions and 2 deletions

View File

@ -7,7 +7,10 @@ function bangleDownload() {
Progress.show({title:"Scanning...",sticky:true});
var normalFiles, storageFiles;
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;
console.log(" - "+f.join(","));
console.log("Listing StorageFiles...");
@ -38,8 +41,9 @@ function bangleDownload() {
});
});
}
console.log("Listing StorageFiles...");
return promise;
}).then(() => {
return Comms.showMessage(Const.MESSAGE_RELOAD);
}).then(() => {
return zip.generateAsync({type:"blob"});
}).then(content => {