From f8fca9e2a6728728a9f6332c5ff0135e37b1b02a Mon Sep 17 00:00:00 2001 From: Farrin Reid Date: Sat, 7 Jul 2012 00:59:13 -0800 Subject: [PATCH] [fix] path.existsSync was moved to fs.existsSync --- lib/proxy_writter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/proxy_writter.js b/lib/proxy_writter.js index b76257a..8bc86f3 100644 --- a/lib/proxy_writter.js +++ b/lib/proxy_writter.js @@ -40,7 +40,7 @@ var proxyWritter = function(hostname, pathname) { } mdp.mkdirp(path.dirname(this.filename), 0755, function() { - if(path.existsSync(self.filename)) { + if(fs.existsSync(self.filename)) { self.filename += "-" + Date.now(); } stream = fs.createWriteStream(self.filename, {flags:'w', 'encoding':null});