1
0
Fork 0

await on exists

pull/1344/head
Cory Miller 2023-02-17 20:30:21 +00:00
parent 8d2f32e652
commit 6a357de342
1 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@ import * as path from 'path'
import {promisify} from 'util'
import * as ioUtil from './io-util'
const exec = promisify(childProcess.exec)
const execFile = promisify(childProcess.execFile)
/**
@ -167,7 +166,7 @@ export async function rmRF(inputPath: string): Promise<void> {
console.log('b')
// Shelling out fails to remove a symlink folder with missing source, this unlink catches that
try {
if (ioUtil.exists(inputPath)) {
if (await ioUtil.exists(inputPath)) {
await ioUtil.unlink(inputPath)
}
} catch (err) {