We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a9c3c2 commit 9b6672aCopy full SHA for 9b6672a
doc/api/fs.md
@@ -4772,6 +4772,12 @@ unavailable in some situations.
4772
On Windows, no events will be emitted if the watched directory is moved or
4773
renamed. An `EPERM` error is reported when the watched directory is deleted.
4774
4775
+The `fs.watch` API does not provide any protection with respect
4776
+to malicious actions on the file system. For example, on Windows it is
4777
+implemented by monitoring changes in a directory versus specific files. This
4778
+allows substitution of a file and fs reporting changes on the new file
4779
+with the same filename.
4780
+
4781
##### Availability
4782
4783
<!--type=misc-->
0 commit comments