From ac75cf34ab11d63d3aeca163a899731dd90a0433 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sun, 28 Jul 2013 19:47:13 -0400 Subject: [PATCH] Fix not autogenerating folders --- server.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server.js b/server.js index e8eef0b9..c34b7fe1 100644 --- a/server.js +++ b/server.js @@ -193,6 +193,15 @@ var Server = { }; Logger.syslog.log("Starting CyTube v" + VERSION); + +fs.exists("chanlogs", function (exists) { + exists || fs.mkdir("chanlogs"); +}); + +fs.exists("chandump", function (exists) { + exists || fs.mkdir("chandump"); +}); + Config.load(Server, "cfg.json", function () { Server.init(); if(!Server.cfg["debug"]) {