MOBILE-3302 desktop: Fix unzip files in desktop apps

main
Dani Palou 2020-01-16 15:15:38 +01:00
parent 421ea59db0
commit 16daf6661f
1 changed files with 2 additions and 2 deletions

View File

@ -85,8 +85,8 @@ export class ZipMock extends Zip {
}
// First of all, create the directory where the files will be unzipped.
const destParent = destination.substring(0, source.lastIndexOf('/')),
destFolderName = destination.substr(source.lastIndexOf('/') + 1);
const destParent = destination.substring(0, destination.lastIndexOf('/')),
destFolderName = destination.substr(destination.lastIndexOf('/') + 1);
return this.file.createDir(destParent, destFolderName, true);
}).then(() => {