From 4291ca406f2a5a7323a19b6046a2f12fbfdf3c94 Mon Sep 17 00:00:00 2001 From: Joshua Holbrook Date: Fri, 6 Jul 2012 18:52:08 -0800 Subject: [PATCH] [fix] path.exists was moved to fs.exists --- broomstick.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/broomstick.js b/broomstick.js index c375958..ccd0cdc 100644 --- a/broomstick.js +++ b/broomstick.js @@ -33,7 +33,7 @@ var Broomstick = function (options) { var filepath = path.join(b.path, route); b.log('req', 'no cached version for ' + route); b.log('req', 'looking in: ' + filepath); - path.exists(filepath, function (exists) { + fs.exists(filepath, function (exists) { if (!exists) { b.log('req', filepath + ' does not exist: sending 404'); res.writeHead(404);