Skip to content

Commit ba45162

Browse files
mournerSebastian McKenzie
authored and
Sebastian McKenzie
committed
partially revert #2657 to fix add command test (#3222)
1 parent e7e2aa7 commit ba45162

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/util/fs.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@ async function buildActionsForCopy(
218218
if (srcFiles.indexOf(file) < 0) {
219219
const loc = path.join(dest, file);
220220
possibleExtraneous.add(loc);
221+
222+
if ((await lstat(loc)).isDirectory()) {
223+
for (const file of await readdir(loc)) {
224+
possibleExtraneous.add(path.join(loc, file));
225+
}
226+
}
221227
}
222228
}
223229
}

0 commit comments

Comments
 (0)