diff webtty.js @ 81:e4773ac5d4d5

Switch to node v0.8. In node v0.8, path.exists() has been moved to the fs module.
author John "Elwin" Edwards <elwin@sdf.org>
date Sun, 08 Jul 2012 08:02:17 -0700
parents 7466927c17a5
children ad4229cf8321
line wrap: on
line diff
--- a/webtty.js	Sat Jun 23 19:45:25 2012 -0700
+++ b/webtty.js	Sun Jul 08 08:02:17 2012 -0700
@@ -209,7 +209,7 @@
     path.join(nname, "index.html"); /* it was a directory */
   var realname = path.join(serveStaticRoot, nname);
   var extension = path.extname(realname);
-  path.exists(realname, function (exists) {
+  fs.exists(realname, function (exists) {
     var resheaders = {};
     if (!exists || !extension || extension == ".html")
       resheaders["Content-Type"] = "text/html";