Skip to content

Commit

Permalink
partially revert #2657 to fix add command test (#3222)
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner authored and Sebastian McKenzie committed Apr 21, 2017
1 parent e7e2aa7 commit ba45162
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/util/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
}
}
Expand Down

0 comments on commit ba45162

Please sign in to comment.