Version
v18.19.1
Platform
Darwin MBP-13-Work.local 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:06 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T8103 arm64
Subsystem
fs
What steps will reproduce the bug?
Install a fs.watch on a folder path:
require("fs").watch("path to a folder", console.log);
Delete the folder from disk, for example with a fs.rm call.
How often does it reproduce? Is there a required condition?
Everytime.
What is the expected behavior? Why is that the expected behavior?
Deleting the watched folder path reports an event, similar to how an event is reported when watching a file path.
What do you see instead?
No event is fired when deleting the watched folder path.
Additional information
On Windows and Linux and event is reported.
Version
v18.19.1
Platform
Darwin MBP-13-Work.local 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:06 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T8103 arm64
Subsystem
fs
What steps will reproduce the bug?
Install a
fs.watchon a folder path:Delete the folder from disk, for example with a
fs.rmcall.How often does it reproduce? Is there a required condition?
Everytime.
What is the expected behavior? Why is that the expected behavior?
Deleting the watched folder path reports an event, similar to how an event is reported when watching a file path.
What do you see instead?
No event is fired when deleting the watched folder path.
Additional information
On Windows and Linux and event is reported.