mirror of https://github.com/calzoneman/sync.git
Fix warning in node 7
This commit is contained in:
parent
aa06884bd6
commit
a624f45493
|
@ -2,7 +2,7 @@
|
||||||
"author": "Calvin Montgomery",
|
"author": "Calvin Montgomery",
|
||||||
"name": "CyTube",
|
"name": "CyTube",
|
||||||
"description": "Online media synchronizer and chat",
|
"description": "Online media synchronizer and chat",
|
||||||
"version": "3.24.1",
|
"version": "3.24.2",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "http://github.com/calzoneman/sync"
|
"url": "http://github.com/calzoneman/sync"
|
||||||
},
|
},
|
||||||
|
|
|
@ -10,17 +10,17 @@ module.exports = {
|
||||||
Logger.syslog.log("Starting CyTube v" + VERSION);
|
Logger.syslog.log("Starting CyTube v" + VERSION);
|
||||||
var chanlogpath = path.join(__dirname, "../chanlogs");
|
var chanlogpath = path.join(__dirname, "../chanlogs");
|
||||||
fs.exists(chanlogpath, function (exists) {
|
fs.exists(chanlogpath, function (exists) {
|
||||||
exists || fs.mkdir(chanlogpath);
|
exists || fs.mkdirSync(chanlogpath);
|
||||||
});
|
});
|
||||||
|
|
||||||
var chandumppath = path.join(__dirname, "../chandump");
|
var chandumppath = path.join(__dirname, "../chandump");
|
||||||
fs.exists(chandumppath, function (exists) {
|
fs.exists(chandumppath, function (exists) {
|
||||||
exists || fs.mkdir(chandumppath);
|
exists || fs.mkdirSync(chandumppath);
|
||||||
});
|
});
|
||||||
|
|
||||||
var gdvttpath = path.join(__dirname, "../google-drive-subtitles");
|
var gdvttpath = path.join(__dirname, "../google-drive-subtitles");
|
||||||
fs.exists(gdvttpath, function (exists) {
|
fs.exists(gdvttpath, function (exists) {
|
||||||
exists || fs.mkdir(gdvttpath);
|
exists || fs.mkdirSync(gdvttpath);
|
||||||
});
|
});
|
||||||
singleton = new Server();
|
singleton = new Server();
|
||||||
return singleton;
|
return singleton;
|
||||||
|
|
Loading…
Reference in New Issue