allow modules to be sym links
This commit is contained in:
parent
90f55478cc
commit
0a388b4887
1 changed files with 2 additions and 1 deletions
|
|
@ -1050,7 +1050,8 @@ function loadModule(dir) {
|
|||
lastmod("mod") && fs.readdirSync(currentDir + "/mod").forEach(dir => {
|
||||
const fullpath = currentDir + "/mod/" + dir;
|
||||
if (dir.charAt(0) === '.') return;
|
||||
if (!fs.lstatSync(fullpath).isDirectory()) return;
|
||||
const stats = fs.lstatSync(fullpath);
|
||||
if (!(stats.isDirectory() || stats.isSymbolicLink())) return;
|
||||
loadModule(fullpath);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue