From 64014ce08c50179fc1ca62ad92018146e4631ba5 Mon Sep 17 00:00:00 2001 From: Farrin Reid Date: Sat, 7 Jul 2012 01:33:00 -0800 Subject: [PATCH] [fix] path.existsSync was moved to fs.existsSync --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index a2a4c58..e0b6247 100755 --- a/main.js +++ b/main.js @@ -34,7 +34,7 @@ program .action(function(dir){checkForDependencies(function(){ // Work around name collision caused by "password" function provided by commander var password = program.password instanceof Function ? undefined : program.password - if (dir && !path.existsSync(dir)) { + if (dir && !fs.existsSync(dir)) { console.log('Created `' + dir + '` directory.') fs.mkdirSync(dir) }