From 678e25f510786fbc38f505f8b594f57f39e33a04 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Mon, 20 Apr 2020 11:47:54 +0100 Subject: [PATCH] makelibrary command should skip non-directories Fixes #4583 --- core/modules/commands/makelibrary.js | 4 ++-- core/modules/utils/filesystem.js | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/core/modules/commands/makelibrary.js b/core/modules/commands/makelibrary.js index c2e15ef37..1e0035dab 100644 --- a/core/modules/commands/makelibrary.js +++ b/core/modules/commands/makelibrary.js @@ -33,7 +33,7 @@ Command.prototype.execute = function() { tiddlers = {}; // Collect up the library plugins var collectPlugins = function(folder) { - var pluginFolders = fs.readdirSync(folder); + var pluginFolders = $tw.utils.getSubdirectories(folder); for(var p=0; p