[android] added module
This commit is contained in:
@@ -85,7 +85,7 @@ class Sdk {
|
||||
stream = stream.on('downloadProgress', (p) => bar.update(p.percent));
|
||||
if (this.link.endsWith('.zip')) {
|
||||
stream = stream.pipe(unzip.Parse()).on('entry', (entry) => {
|
||||
const filePath = entry.path.split('/').slice(1).join(path.sep);
|
||||
const filePath = entry.path.split('/').slice(strip).join(path.sep);
|
||||
if (filePath.length > 0) {
|
||||
if (entry.type === 'Directory') {
|
||||
fse.ensureDirSync(path.join(this.path, path.normalize(filePath)));
|
||||
|
||||
Reference in New Issue
Block a user