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