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);