diff --git a/jekyll/testserver.js b/jekyll/testserver.js index 4a0c9ad..f7bb272 100644 --- a/jekyll/testserver.js +++ b/jekyll/testserver.js @@ -9,7 +9,7 @@ http.createServer(function(request, response) { var uri = url.parse(request.url).pathname , filename = path.join(process.cwd(), uri).replace('nwtui/nwt', 'nwtui/_site'); console.log('Filename is:', filename); - path.exists(filename, function(exists) { + fs.exists(filename, function(exists) { if(!exists) { response.writeHead(404, {"Content-Type": "text/plain"}); response.write("404 Not Found\n");