Merge pull request #2246 from dpalou/MOBILE-3302

MOBILE-3302 desktop: Fix unzip files in desktop apps
main
Juan Leyva 2020-01-22 17:08:02 +01:00 committed by GitHub
commit 17ca2d186f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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. // First of all, create the directory where the files will be unzipped.
const destParent = destination.substring(0, source.lastIndexOf('/')), const destParent = destination.substring(0, destination.lastIndexOf('/')),
destFolderName = destination.substr(source.lastIndexOf('/') + 1); destFolderName = destination.substr(destination.lastIndexOf('/') + 1);
return this.file.createDir(destParent, destFolderName, true); return this.file.createDir(destParent, destFolderName, true);
}).then(() => { }).then(() => {