Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #1 from node-migrator-bot/clean

Changed path.{exists,existsSync} to fs.{exists,existsSync}.
  • Loading branch information...
commit e018ad21cb6ec8a3dc0addedba4ae7273aa33a19 2 parents 70d14e8 + a555d2d
Craig Rogers authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  index.js
2  index.js
@@ -28,7 +28,7 @@ add.static = function(opts) {
28 28 addRoute('GET', route+':file*:', function(req, res) {
29 29 var file = req.url.pathname.replace(route, '/')
30 30 file = path.join(opts.dir, file)
31   - if (path.existsSync(file)) filed(file).pipe(res)
  31 + if (fs.existsSync(file)) filed(file).pipe(res)
32 32 else res.show404()
33 33 }, 1)
34 34 }

0 comments on commit e018ad2

Please sign in to comment.
Something went wrong with that request. Please try again.