Skip to content

Commit

Permalink
feat: respect the original symboliclink if resolveSymlinks is false
Browse files Browse the repository at this point in the history
  • Loading branch information
LongYinan committed Jun 20, 2021
1 parent 94f8b75 commit 0af89c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/walker.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Walker.prototype.processDirents = function processDirents(
for (var i = 0; i < dirents.length; ++i) {
const dirent = dirents[i];

if (dirent.isFile()) {
if (dirent.isFile() || (dirent.isSymbolicLink() && this.symlinkResolver === fns.empty)) {
const filename = this.joinPath(dirent.name, directoryPath);
this.pushFile(this, filename, files);
} else if (dirent.isDirectory()) {
Expand Down

0 comments on commit 0af89c3

Please sign in to comment.