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 };