From 87ab020c18a58c09e9f91fab6f5fadad258a8a7f Mon Sep 17 00:00:00 2001 From: Javed Hussein Date: Thu, 11 Aug 2022 16:29:16 -0400 Subject: [PATCH 1/2] fix: confirm folder exists before cleanup --- src/utils/temp_folder.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/temp_folder.ts b/src/utils/temp_folder.ts index ad9e0c58..e8c8ec9b 100644 --- a/src/utils/temp_folder.ts +++ b/src/utils/temp_folder.ts @@ -73,5 +73,7 @@ export function getTempFolder(): string { export function cleanUpTempFolder(): void { const tempFolderPath = platformTempFolder(); - fs.rmdirSync(tempFolderPath, { recursive: true }); + if (fs.existsSync(tempFolderPath)) { + fs.rmdirSync(tempFolderPath, { recursive: true }); + } } From e0ce525bd85800f2813b950084c8e5728f0ab398 Mon Sep 17 00:00:00 2001 From: Javed Hussein Date: Fri, 12 Aug 2022 11:02:23 -0400 Subject: [PATCH 2/2] chore: update version to 1.20.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 27cf799e..b150b5da 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ardrive-cli", - "version": "1.20.0", + "version": "1.20.1", "description": "The ArDrive Command Line Interface (CLI is a Node.js application for terminal-based ArDrive workflows. It also offers utility operations for securely interacting with Arweave wallets and inspecting various Arweave blockchain conditions.", "main": "./lib/index.js", "bin": {