diff --git a/boot/boot.js b/boot/boot.js index 9cdf7f063..fd205b7fc 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -1425,7 +1425,7 @@ $tw.loadTiddlersFromPath = function(filepath,excludeRegExp) { } else { // If not, read all the files in the directory $tw.utils.each(files,function(file) { - if(!excludeRegExp.test(file)) { + if(!excludeRegExp.test(file) && file !== "plugin.info") { tiddlers.push.apply(tiddlers,$tw.loadTiddlersFromPath(filepath + path.sep + file,excludeRegExp)); } }); @@ -1442,53 +1442,43 @@ Load the tiddlers from a plugin folder, and package them up into a proper JSON p */ $tw.loadPluginFolder = function(filepath,excludeRegExp) { excludeRegExp = excludeRegExp || $tw.boot.excludeRegExp; - var stat, files, pluginInfo, pluginTiddlers = [], f, file, titlePrefix, t; - if(fs.existsSync(filepath)) { - stat = fs.statSync(filepath); - if(stat.isDirectory()) { - // Read the plugin information - pluginInfo = JSON.parse(fs.readFileSync(filepath + path.sep + "plugin.info","utf8")); - // Read the plugin files - files = fs.readdirSync(filepath); - for(f=0; f