Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test.after(function after () {
localStorage.clear()
sander.rimrafSync(storagePath)
})
test.after(function after () {
localStorage.clear()
sander.rimrafSync(storagePath)
})
test.after(function after () {
localStorage.clear()
sander.rimrafSync(storagePath)
})
test.after(function after () {
localStorage.clear()
sander.rimrafSync(storagePath)
sander.rimrafSync(storagePath2)
})
test.after(function after () {
localStorage.clear()
sander.rimrafSync(storagePath)
})
}).forEach(function (file) {
return sander.rimrafSync(dir, file);
});
};
.forEach( file => rimrafSync( dir, file ) );
}
}).forEach(function (file) {
return sander.rimrafSync(dir, file);
});
};
.forEach( file => rimrafSync( dir, file ) );
}
fs.readdirSync(dest).forEach(file => {
const filePath = path.join(dest, file);
const targetPath = path.join(tmpDir, file);
const isDir = fs.lstatSync(filePath).isDirectory();
if (isDir) {
copydirSync(filePath).to(targetPath);
rimrafSync(filePath);
} else {
fs.copyFileSync(filePath, targetPath);
fs.unlinkSync(filePath);
}
});
}