fix(core): update
This commit is contained in:
		| @@ -12,7 +12,7 @@ export class SmartArchive { | |||||||
|   public async extractArchiveFromUrlToFs(urlArg: string, targetDir: string) { |   public async extractArchiveFromUrlToFs(urlArg: string, targetDir: string) { | ||||||
|     const parsedPath = plugins.path.parse(urlArg); |     const parsedPath = plugins.path.parse(urlArg); | ||||||
|     const uniqueFileName = plugins.smartunique.uni() + parsedPath.ext; |     const uniqueFileName = plugins.smartunique.uni() + parsedPath.ext; | ||||||
|     plugins.smartfile.fs.ensureDir(paths.nogitDir); |     plugins.smartfile.fs.ensureDir(paths.nogitDir); // TODO: totally remove caching needs | ||||||
|     const downloadPath = plugins.path.join(paths.nogitDir, uniqueFileName); |     const downloadPath = plugins.path.join(paths.nogitDir, uniqueFileName); | ||||||
|     const downloadedArchive = (await plugins.smartrequest.getBinary(urlArg)).body; |     const downloadedArchive = (await plugins.smartrequest.getBinary(urlArg)).body; | ||||||
|     await plugins.smartfile.memory.toFs(downloadedArchive, downloadPath); |     await plugins.smartfile.memory.toFs(downloadedArchive, downloadPath); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user