From cb48cfa948b351fdd8d9df6e67c67eaccd2cc56d Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 19 Apr 2021 14:13:53 +0000 Subject: [PATCH] fix(core): update --- ts/smartarchive.classes.smartarchive.ts | 1 + ts/smartarchive.paths.ts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/smartarchive.classes.smartarchive.ts b/ts/smartarchive.classes.smartarchive.ts index d8cce50..c37cbe6 100644 --- a/ts/smartarchive.classes.smartarchive.ts +++ b/ts/smartarchive.classes.smartarchive.ts @@ -12,6 +12,7 @@ export class SmartArchive { public async extractArchiveFromUrlToFs(urlArg: string, targetDir: string) { const parsedPath = plugins.path.parse(urlArg); const uniqueFileName = plugins.smartunique.uni() + parsedPath.ext; + plugins.smartfile.fs.ensureDir(paths.nogitDir); const downloadPath = plugins.path.join(paths.nogitDir, uniqueFileName); const downloadedArchive = (await plugins.smartrequest.getBinary(urlArg)).body; await plugins.smartfile.memory.toFs(downloadedArchive, downloadPath); diff --git a/ts/smartarchive.paths.ts b/ts/smartarchive.paths.ts index be5e516..5e8277b 100644 --- a/ts/smartarchive.paths.ts +++ b/ts/smartarchive.paths.ts @@ -2,4 +2,3 @@ import * as plugins from './smartarchive.plugins'; export const packageDir = plugins.path.join(__dirname, '../'); export const nogitDir = plugins.path.join(__dirname, './.nogit'); -plugins.smartfile.fs.ensureDir(nogitDir);