Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ignoredCopyFile: async (relativeSourcePath, relativeTargetPath) => {
logger.silly(
getMessage("Watcher_Ignored_Copy_Log", {
sourcePath: relativeSourcePath,
targetPath: relativeTargetPath
})
);
try {
ignoreAction("write", relativeTargetPath);
assertUnderRoot(relativeSourcePath);
assertUnderRoot(relativeTargetPath);
await fs.copy(
fullPath(relativeSourcePath),
fullPath(relativeTargetPath)
);
} catch (err) {
logger.info(