We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d456147 commit 5ef7180Copy full SHA for 5ef7180
doc/api/fs.md
@@ -1703,8 +1703,12 @@ The listener callback gets two arguments `(eventType, filename)`. `eventType` i
1703
`'rename'` or `'change'`, and `filename` is the name of the file which triggered
1704
the event.
1705
1706
-Please note the listener callback is attached to the `'change'` event
1707
-fired by [`fs.FSWatcher`][], but they are not the same thing.
+Note that on most platforms, `'rename'` is emitted whenever a filename appears
+or disappears in the directory.
1708
+
1709
+Also note the listener callback is attached to the `'change'` event fired by
1710
+[`fs.FSWatcher`][], but it is not the same thing as the `'change'` value of
1711
+`eventType`.
1712
1713
### Caveats
1714
0 commit comments