Skip to content

Commit

Permalink
docs: list macOS as supporting filename argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Young committed May 19, 2017
1 parent ab34f9d commit a7ba706
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2405,10 +2405,10 @@ this improves the usability of file watching. This is expected behavior.

<!--type=misc-->

Providing `filename` argument in the callback is only supported on Linux and
Windows. Even on supported platforms, `filename` is not always guaranteed to
be provided. Therefore, don't assume that `filename` argument is always
provided in the callback, and have some fallback logic if it is null.
Providing `filename` argument in the callback is only supported on Linux,
macOS, and Windows. Even on supported platforms, `filename` is not always
guaranteed to be provided. Therefore, don't assume that `filename` argument is
always provided in the callback, and have some fallback logic if it is null.

```js
fs.watch('somedir', (eventType, filename) => {
Expand Down

0 comments on commit a7ba706

Please sign in to comment.