From cef5f056abf1cfc27024e136e759296e28cf52ec Mon Sep 17 00:00:00 2001 From: Farrin Reid Date: Sat, 7 Jul 2012 04:15:08 -0800 Subject: [PATCH] [fix] path.existsSync was moved to fs.existsSync --- lib/spreadsheets/Spreadsheets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spreadsheets/Spreadsheets.js b/lib/spreadsheets/Spreadsheets.js index 930b4bb..9ae2464 100644 --- a/lib/spreadsheets/Spreadsheets.js +++ b/lib/spreadsheets/Spreadsheets.js @@ -268,7 +268,7 @@ Spreadsheet.prototype.download = function(format, out, callback) { core.download.call(self, opt, "", callback); function _create(pathname) { - if(path.existsSync(pathname)) + if(fs.existsSync(pathname)) if(fs.statSync(pathname).isDirectory()) return _create(path.join(pathname, $("title", self._xml).text() + "." + format)); else {