How to use the @stryker-mutator/util.fsAsPromised.lstat function in @stryker-mutator/util

To help you get started, we’ve selected a few @stryker-mutator/util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stryker-mutator / stryker / packages / stryker / src / utils / fileUtils.ts View on Github external
export async function cleanFolder(folderName: string) {
  try {
    await fsAsPromised.lstat(folderName);
    await deleteDir(folderName);
    return mkdirp.sync(folderName);
  } catch (e) {

    return mkdirp.sync(folderName);
  }
}
github stryker-mutator / stryker / packages / core / src / utils / fileUtils.ts View on Github external
export async function cleanFolder(folderName: string) {
  try {
    await fsAsPromised.lstat(folderName);
    await deleteDir(folderName);
    return mkdirp.sync(folderName);
  } catch (e) {
    return mkdirp.sync(folderName);
  }
}