Permalink
Browse files

[fix] path.existsSync was moved to fs.existsSync

  • Loading branch information...
blakmatrix committed Jul 7, 2012
1 parent 70d14e8 commit a555d2d4e04971cb61aeeb55bc0f61ff78028a86
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -28,7 +28,7 @@ add.static = function(opts) {
addRoute('GET', route+':file*:', function(req, res) {
var file = req.url.pathname.replace(route, '/')
file = path.join(opts.dir, file)
- if (path.existsSync(file)) filed(file).pipe(res)
+ if (fs.existsSync(file)) filed(file).pipe(res)
else res.show404()
}, 1)
}

0 comments on commit a555d2d

Please sign in to comment.