Skip to content

Commit 17ca2d1

Browse files
authored
Merge pull request #2246 from dpalou/MOBILE-3302
MOBILE-3302 desktop: Fix unzip files in desktop apps
2 parents 12c95d6 + 16daf66 commit 17ca2d1

File tree

1 file changed

+2
-2
lines changed
  • src/core/emulator/providers

1 file changed

+2
-2
lines changed

src/core/emulator/providers/zip.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ export class ZipMock extends Zip {
8585
}
8686

8787
// First of all, create the directory where the files will be unzipped.
88-
const destParent = destination.substring(0, source.lastIndexOf('/')),
89-
destFolderName = destination.substr(source.lastIndexOf('/') + 1);
88+
const destParent = destination.substring(0, destination.lastIndexOf('/')),
89+
destFolderName = destination.substr(destination.lastIndexOf('/') + 1);
9090

9191
return this.file.createDir(destParent, destFolderName, true);
9292
}).then(() => {

0 commit comments

Comments
 (0)