Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
doc: rm redundant inline stability notices, incorporate advisory text…
… in main doc text, expand advisory with brief explanation
  • Loading branch information
Trott committed May 26, 2015
commit 0cc60e54a8895b90dff67240a4ecddc2dbb0907d
12 changes: 8 additions & 4 deletions doc/api/fs.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,6 @@ The synchronous version of `fs.appendFile`.

## fs.watchFile(filename[, options], listener)

Stability: 2 - Stable. Use fs.watch instead, if possible.

Watch for changes on `filename`. The callback `listener` will be called each
time the file is accessed.

Expand All @@ -558,9 +556,11 @@ These stat objects are instances of `fs.Stat`.
If you want to be notified when the file was modified, not just accessed
you need to compare `curr.mtime` and `prev.mtime`.

## fs.unwatchFile(filename[, listener])
`fs.watch` is more efficient than `fs.watchFile` and `fs.unwatchFile`.
`fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile`
when possible.

Stability: 2 - Stable. Use fs.watch instead, if possible.
## fs.unwatchFile(filename[, listener])

Stop watching for changes on `filename`. If `listener` is specified, only that
particular listener is removed. Otherwise, *all* listeners are removed and you
Expand All @@ -569,6 +569,10 @@ have effectively stopped watching `filename`.
Calling `fs.unwatchFile()` with a filename that is not being watched is a
no-op, not an error.

`fs.watch` is more efficient than `fs.watchFile` and `fs.unwatchFile`.
`fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile`
when possible.

## fs.watch(filename[, options][, listener])

Watch for changes on `filename`, where `filename` is either a file or a
Expand Down