async function ensureDir(dirPath) {
  // if (!fs.existsSync(dirPath)) {
  //   fs.mkdirSync(dirPath, { recursive: true })
  // }
  try {
    await fse.ensureDir(dirPath)
  } catch (err) {
    console.error(err)
  }
}
/**
 * Ensures that the directory exists.
 * If the directory structure does not exist, it is created.
 * @async
 * @param {String} dirPath Use absolute path!
 * @description Just a wrapper for `fs-extra.ensureDir`
 */
Ensures that the directory exists.
If the directory structure does not exist, it is created.
@async
@param {String} dirPath Use absolute path.
@description Just a wrapper for `fs-extra.ensureDir`
Ensures that the directory exists . If the directory structure does not exist it is created . @async @param { String } dirPath Use absolute path . @description Just a wrapper for ` fs - extra . ensureDir `
async function ensureDir(dirPath) {
  try {
    await fse.ensureDir(dirPath)
  } catch (err) {
    console.error(err)
  }
}
async function ensureDir ( dirPath ) { try { await fse . ensureDir ( dirPath ) } catch ( err ) { console . error ( err ) } }
Ensures that the directory exists.
Ensures that the directory exists .
// if (!fs.existsSync(dirPath)) { //   fs.mkdirSync(dirPath, { recursive: true }) // }