We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3014dfd commit d5fa1d5Copy full SHA for d5fa1d5
doc/api/fs.md
@@ -1701,8 +1701,12 @@ The listener callback gets two arguments `(eventType, filename)`. `eventType` i
1701
`'rename'` or `'change'`, and `filename` is the name of the file which triggered
1702
the event.
1703
1704
-Please note the listener callback is attached to the `'change'` event
1705
-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.
1706
+
1707
+Also note the listener callback is attached to the `'change'` event fired by
1708
+[`fs.FSWatcher`][], but it is not the same thing as the `'change'` value of
1709
+`eventType`.
1710
1711
### Caveats
1712
0 commit comments