Permalink
Browse files

path.existsSync became fs.existsSync in node 0.8

  • Loading branch information...
1 parent 50653cf commit 35e643a3f8d0331e9621f11fc41dd6abc919bde9 @boutell boutell committed Jan 15, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 sc-proxy/server.js
View
@@ -2,7 +2,6 @@
var config = require('./config');
var fs = require('fs');
-var path = require('path');
var http = require('http');
var httpProxy = require('http-proxy');
@@ -85,7 +84,7 @@ function rebuildRouter(failQuickly)
var hostsPath = config.appsDir + '/' + site + '/data/hosts';
try
{
- if (path.existsSync(hostsPath))
+ if (fs.existsSync(hostsPath))
{
hosts = fs.readFileSync(hostsPath, 'UTF-8').replace(/\s+$/, '');
hosts = hosts.split(/\s+/);

0 comments on commit 35e643a

Please sign in to comment.