Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Replace util.debug with console.error #2214

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/api/fs.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ Test whether or not the given path exists by checking with the file system.
Then call the `callback` argument with either true or false. Example:

fs.exists('/etc/passwd', function (exists) {
util.debug(exists ? "it's there" : "no passwd!");
console.log(exists ? "it's there" : 'no passwd!');
});

`fs.exists()` is an anachronism and exists only for historical reasons.
Expand Down Expand Up @@ -717,8 +717,8 @@ a possible error argument. If any of the accessibility checks fail, the error
argument will be populated. The following example checks if the file
`/etc/passwd` can be read and written by the current process.

fs.access('/etc/passwd', fs.R_OK | fs.W_OK, function(err) {
util.debug(err ? 'no access!' : 'can read/write');
fs.access('/etc/passwd', fs.R_OK | fs.W_OK, function (err) {
console.log(err ? 'no access!' : 'can read/write');
});

## fs.accessSync(path[, mode])
Expand Down