From 4272cd6ca1612ab06326307081e1eeb32a227007 Mon Sep 17 00:00:00 2001 From: Cory Miller <13227161+cory-miller@users.noreply.github.com> Date: Tue, 21 Feb 2023 17:00:46 +0000 Subject: [PATCH] . --- packages/io/src/io-util.ts | 2 +- packages/io/src/io.ts | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/io/src/io-util.ts b/packages/io/src/io-util.ts index 766b4049..49ced213 100644 --- a/packages/io/src/io-util.ts +++ b/packages/io/src/io-util.ts @@ -9,8 +9,8 @@ export const { readdir, readlink, rename, - rm, rmdir, + rm, stat, symlink, unlink diff --git a/packages/io/src/io.ts b/packages/io/src/io.ts index bff17f60..0dd160c8 100644 --- a/packages/io/src/io.ts +++ b/packages/io/src/io.ts @@ -127,13 +127,13 @@ export async function rmRF(inputPath: string): Promise { } try { - const cmdPath = ioUtil.getCmdPath() - await ioUtil.rm(inputPath, { recursive: true, force: true }) + // const cmdPath = ioUtil.getCmdPath() + // const p = new Promise(async resolve => { // setTimeout(() => { // resolve('timeout') @@ -197,12 +197,6 @@ export async function rmRF(inputPath: string): Promise { // Shelling out fails to remove a symlink folder with missing source, this unlink catches that try { if (await ioUtil.exists(inputPath)) { - if (await ioUtil.isDirectory(inputPath)) { - const files = await ioUtil.readdir(inputPath) - for (const file of files) { - console.log(`second ioUtil.readdir: ${file}`) - } - } await ioUtil.unlink(inputPath) } } catch (err) {