diff --git a/src/util/fs.js b/src/util/fs.js index 77c493b878..d8ff96fba1 100644 --- a/src/util/fs.js +++ b/src/util/fs.js @@ -218,6 +218,12 @@ async function buildActionsForCopy( if (srcFiles.indexOf(file) < 0) { const loc = path.join(dest, file); possibleExtraneous.add(loc); + + if ((await lstat(loc)).isDirectory()) { + for (const file of await readdir(loc)) { + possibleExtraneous.add(path.join(loc, file)); + } + } } } }