async function emptyDir(dirPath) {
  try {
    await fse.emptyDir(dirPath)
  } catch (err) {
    console.error(err)
  }
}
/**
 * Ensures that a directory is empty.
 * Deletes directory contents if the directory is not empty.
 * If the directory does not exist, it is created.
 * The directory itself is not deleted.
 * @async
 * @param {String} dirPath Use absolute path!
 * @description Just a wrapper for `fs-extra.emptyDir`
 */
Ensures that a directory is empty.
Deletes directory contents if the directory is not empty.
If the directory does not exist, it is created.
The directory itself is not deleted.
@async
@param {String} dirPath Use absolute path.
@description Just a wrapper for `fs-extra.emptyDir`
Ensures that a directory is empty . Deletes directory contents if the directory is not empty . If the directory does not exist it is created . The directory itself is not deleted . @async @param { String } dirPath Use absolute path . @description Just a wrapper for ` fs - extra . emptyDir `
async function emptyDir(dirPath) {
  try {
    await fse.emptyDir(dirPath)
  } catch (err) {
    console.error(err)
  }
}
async function emptyDir ( dirPath ) { try { await fse . emptyDir ( dirPath ) } catch ( err ) { console . error ( err ) } }
Ensures that a directory is empty.
Ensures that a directory is empty .