mirror of https://github.com/node-red/node-red.git
Merge branch 'dev' into mqtt5
This commit is contained in:
commit
48d6fe5918
|
@ -102,7 +102,8 @@ function getLibraryEntry(type,path) {
|
||||||
var files = [];
|
var files = [];
|
||||||
fns.sort().filter(function(fn) {
|
fns.sort().filter(function(fn) {
|
||||||
var fullPath = fspath.join(path,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] != ".") {
|
if (fn[0] != ".") {
|
||||||
var stats = fs.lstatSync(absoluteFullPath);
|
var stats = fs.lstatSync(absoluteFullPath);
|
||||||
if (stats.isDirectory()) {
|
if (stats.isDirectory()) {
|
||||||
|
|
Loading…
Reference in New Issue