From 87811285428341989aa833435a9f6a2543d22fa8 Mon Sep 17 00:00:00 2001 From: Farrin Reid Date: Sat, 7 Jul 2012 01:57:23 -0800 Subject: [PATCH] [fix] path.existsSync was moved to fs.existsSync --- lib/node_util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_util.js b/lib/node_util.js index 44334c6..ba15690 100644 --- a/lib/node_util.js +++ b/lib/node_util.js @@ -24,7 +24,7 @@ put = request.put; rmdirRecursiveSync = function(dirPath) { var currFile, currFilePath, file, _i, _len, _ref; - if (!path.existsSync(dirPath)) { + if (!fs.existsSync(dirPath)) { return true; } _ref = fs.readdirSync(dirPath); @@ -68,7 +68,7 @@ join: path.join, exec: run, ls: fs.readdirSync, - exists: path.existsSync, + exists: fs.existsSync, post: post, get: get };