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 authored and Abdullah Atta committed Jun 20, 2021
1 parent 94f8b75 commit 6b1d9d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/walker.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ Walker.prototype.processDirents = function processDirents(
for (var i = 0; i < dirents.length; ++i) {
const dirent = dirents[i];

if (dirent.isFile()) {
const filename = this.joinPath(dirent.name, directoryPath);
this.pushFile(this, filename, files);
} else if (dirent.isDirectory()) {
if (dirent.isDirectory()) {
let path = fns.joinPathWithBasePath(dirent.name, directoryPath);
this.walkDir(this, path, dirent.name, currentDepth - 1);
}
Expand All @@ -93,6 +90,9 @@ Walker.prototype.processDirents = function processDirents(
this.walkDir(this, resolvedPath, dirent.name, currentDepth - 1);
}
});
} else {
const filename = this.joinPath(dirent.name, directoryPath);
this.pushFile(this, filename, files);
}
}

Expand Down

0 comments on commit 6b1d9d8

Please sign in to comment.