-
Notifications
You must be signed in to change notification settings - Fork 945
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[refactor] replace sys module usages in examples with util
- Loading branch information
Showing
5 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
var sys = require('sys'), | ||
var util = require('util'), | ||
daemon = require('daemon'), | ||
fs = require('fs'); | ||
|
||
daemon.chroot('/tmp/chroot'); | ||
sys.puts('Working in chroot'); | ||
util.puts('Working in chroot'); | ||
|
||
setInterval(function () { | ||
fs.readdir('./', function (err, files) { | ||
sys.puts('Current directory: ' + process.cwd()); | ||
sys.puts('err: ' + sys.inspect(err)); | ||
sys.puts('files: ' + sys.inspect(files)); | ||
util.puts('Current directory: ' + process.cwd()); | ||
util.puts('err: ' + util.inspect(err)); | ||
util.puts('files: ' + util.inspect(files)); | ||
}); | ||
}, 10000 ); | ||
}, 10000 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters