From 921b213958d02506064d59076966e49ada8efb5c Mon Sep 17 00:00:00 2001 From: Farrin Reid Date: Sat, 7 Jul 2012 05:21:13 -0800 Subject: [PATCH] [fix] path.existsSync was moved to fs.existsSync --- lib/voodoo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/voodoo.js b/lib/voodoo.js index 55db302..46745b6 100644 --- a/lib/voodoo.js +++ b/lib/voodoo.js @@ -37,7 +37,7 @@ if (this.cwd.substring(this.cwd.length - 1) !== '/') this.cwd += '/'; this.config = this.cwd + 'voodoo.js'; if ((opts != null) && (opts.generate != null)) { - if (path.existsSync(this.config)) { + if (fs.existsSync(this.config)) { console.log('voodoo.js exists, nothing generated'); } else { this.generateConfig(this.config); @@ -62,7 +62,7 @@ Voodoo.prototype.generateConfig = function(filepath) { var buff; - if (!path.existsSync(filepath)) { + if (!fs.existsSync(filepath)) { buff = fs.readFileSync(__dirname + '/../voodoo.js'); fs.writeFileSync(filepath, buff); return console.log('generated default voodoo.js');