Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
after(() => fs.rmdir(hexo.base_dir));
after(function() {
return fs.rmdir(baseDir);
});
after(() => fs.rmdir(scaffoldDir));
}).finally(() => {
fs.unlink(file.source);
fs.rmdir(pathFn.dirname(file.source));
});
});
after(() => fs.rmdir(box.base));
after(() => fs.rmdir(hexo.base_dir));
after(() => fs.rmdir(hexo.base_dir));
after(() => fs.rmdir(hexo.base_dir));
function rmdir(path) {
return fs.rmdir(path).catch(err => {
if (err.cause && err.cause.code === 'ENOENT') return;
throw err;
});
}
after(() => fs.rmdir(hexo.base_dir));