Skip to content
This repository

Hi! I fixed some code for you! #17

Open
wants to merge 1 commit into from

2 participants

node-migrator-bot Joshua Holbrook
node-migrator-bot

Hi!

I am migrationBot!

Did you know that path.{exists,existsSync} was moved to fs.{exists,existsSync}, and that tty.setRawMode(mode) was moved to tty.ReadStream#setRawMode() (i.e. process.stdin.setRawMode()) in node v0.8.0? Read more @API changes between v0.6 and v0.8

I automatically made some changes I think will help you migrate your codebase to node v0.8.0, please review these changes and merge them if you feel they are useful, If they are not you can ignore this Pull Request.

Have a Nice Day!

--migrationBot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jul 06, 2012
Joshua Holbrook [fix] fs.existsSync was moved to fs.existsSync b07655b
This page is out of date. Refresh to see the latest.
4  lib/fugue.js
@@ -150,10 +150,10 @@ exports.start = function(server, port, host, worker_count, options) {
150 150
 
151 151
   var path = require('path');
152 152
   // check if paths exist
153  
-  if (!path.existsSync(options.tmp_path)) {
  153
+  if (!fs.existsSync(options.tmp_path)) {
154 154
     throw new Error("Temp path " + options.tmp_path + " does not exist. Please create it");
155 155
   }
156  
-  if (!path.existsSync(options.working_path)) {
  156
+  if (!fs.existsSync(options.working_path)) {
157 157
     throw new Error("Working path " + options.working_path + " does not exist. Please create it");
158 158
   }
159 159
 
2  tools/one_test.js
@@ -2,7 +2,7 @@ var util = require('util');
2 2
 var path = require('path');
3 3
 
4 4
 var test_path = path.join(__dirname, '..', 'test', process.argv[2] + '.js');
5  
-if (!path.existsSync(test_path)) throw "Could not find test path " + test_path;
  5
+if (!fs.existsSync(test_path)) throw "Could not find test path " + test_path;
6 6
 
7 7
 var test_module = require(test_path);
8 8
 
2  tools/test.js
@@ -29,7 +29,7 @@ var do_test = function() {
29 29
 
30 30
   console.log("running test " + test + '...');
31 31
   var module_path = path.join(__dirname, '..', 'test', test + ".js");
32  
-  if (!path.existsSync(module_path)) throw "Could not find test path "+module_path;
  32
+  if (!fs.existsSync(module_path)) throw "Could not find test path "+module_path;
33 33
   var run_this = [path.join(__dirname, 'one_test.js'), test];
34 34
   var test_child = child_process.spawn(process.argv[0], run_this, {env: process.env});
35 35
   test_child.stdout.on('data', function(data) {
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.