From c25a1eef33d35f759b7c2a5ab315ef7d4718d634 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Wed, 12 Jul 2017 16:50:50 +0100 Subject: [PATCH] Remove obsolete code and update docs --- core/modules/commands/load.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/modules/commands/load.js b/core/modules/commands/load.js index 62cf7500c..230a253d5 100644 --- a/core/modules/commands/load.js +++ b/core/modules/commands/load.js @@ -3,7 +3,7 @@ title: $:/core/modules/commands/load.js type: application/javascript module-type: command -Command to load tiddlers from a file +Command to load tiddlers from a file or directory \*/ (function(){ @@ -30,9 +30,7 @@ Command.prototype.execute = function() { if(this.params.length < 1) { return "Missing filename"; } - var ext = path.extname(self.params[0]), - stat = fs.statSync(self.params[0]), - tiddlers = $tw.loadTiddlersFromPath(self.params[0]), + var tiddlers = $tw.loadTiddlersFromPath(self.params[0]), count = 0; $tw.utils.each(tiddlers,function(tiddlerInfo) { $tw.utils.each(tiddlerInfo.tiddlers,function(tiddler) {