diff --git a/core/modules/commands/rendertiddlers.js b/core/modules/commands/rendertiddlers.js index d3ec0a44a..d513688c5 100644 --- a/core/modules/commands/rendertiddlers.js +++ b/core/modules/commands/rendertiddlers.js @@ -38,8 +38,11 @@ Command.prototype.execute = function() { pathname = path.resolve(this.commander.outputPath,this.params[2]), type = this.params[3] || "text/html", extension = this.params[4] || ".html", + deletedirectory = (this.params[5] || "") != "noclean", tiddlers = wiki.filterTiddlers(filter); - $tw.utils.deleteDirectory(pathname); + if(deletedirectory){ + $tw.utils.deleteDirectory(pathname); + } $tw.utils.createDirectory(pathname); $tw.utils.each(tiddlers,function(title) { var parser = wiki.parseTiddler(template),