From 88a2ac234ebda91be19cd8e4a7a4181cf4eb7431 Mon Sep 17 00:00:00 2001 From: Joshua Holbrook Date: Fri, 6 Jul 2012 22:54:14 -0800 Subject: [PATCH] [fix] path.existsSync was moved to fs.existsSync --- shell/icecapd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/icecapd.js b/shell/icecapd.js index 5025eb3..f77de75 100755 --- a/shell/icecapd.js +++ b/shell/icecapd.js @@ -14,8 +14,8 @@ var init = require('init'), dir = path.resolve(home, '.icecapd-js'), file = path.resolve(dir, 'config.json'); try { - if(!path.existsSync(dir)) fs.mkdirSync(dir, 0700); - if(path.existsSync(file)) { + if(!fs.existsSync(dir)) fs.mkdirSync(dir, 0700); + if(fs.existsSync(file)) { config = JSON.parse(fs.readFileSync(file, 'utf-8')); } } catch(e) {