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 e10ef27 commit f35bd86Copy full SHA for f35bd86
doc/api/fs.md
@@ -4764,6 +4764,12 @@ unavailable in some situations.
4764
On Windows, no events will be emitted if the watched directory is moved or
4765
renamed. An `EPERM` error is reported when the watched directory is deleted.
4766
4767
+The `fs.watch` API does not provide any protection with respect
4768
+to malicious actions on the file system. For example, on Windows it is
4769
+implemented by monitoring changes in a directory versus specific files. This
4770
+allows substitution of a file and fs reporting changes on the new file
4771
+with the same filename.
4772
+
4773
##### Availability
4774
4775
<!--type=misc-->
0 commit comments