Skip to content

Commit

Permalink
Merge pull request #2768 from natcl/librarySymlinks
Browse files Browse the repository at this point in the history
Library: properly handle symlinked folders
  • Loading branch information
knolleary committed Nov 25, 2020
2 parents c6129b4 + b1c0d6b commit bbe3ee7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ function getLibraryEntry(type,path) {
var files = [];
fns.sort().filter(function(fn) {
var fullPath = fspath.join(path,fn);
var absoluteFullPath = fspath.join(root,fullPath);
// we use fs.realpathSync to also resolve Symbolic Link
var absoluteFullPath = fs.realpathSync(fspath.join(root,fullPath));
if (fn[0] != ".") {
var stats = fs.lstatSync(absoluteFullPath);
if (stats.isDirectory()) {
Expand Down

0 comments on commit bbe3ee7

Please sign in to comment.