Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when moving folder to a watched folder , only event for the moved folder is generated and not for files inside the folder #165

Open
shishir48 opened this issue Feb 5, 2024 · 2 comments

Comments

@shishir48
Copy link

shishir48 commented Feb 5, 2024

when moving folder to a watched folder , only event for the moved folder is generated and not for files inside the folder. Is this intended behaviour?
node-20.11.0
parcel-watcher-2.4.0
os-windows 10

@z-x
Copy link

z-x commented May 23, 2024

The same goes for deleting an entire folder.

@z-x
Copy link

z-x commented Jun 6, 2024

I did some more testing and, weirdly, it started to work on Windows (11) for me (no Watchman), but fails to work on macOS where I am getting the events for a folder only. I am using the code from the README example, so just simple subscribe and then console.log the events. The nulls in the following video are the errors.

Both are using Node 20.14.0, the same code etc. macOS is Sonoma 14.4.1 (23E224) and watcher is 2.4.0. NPM at 10.8.1

Not working on macOS:
https://github.com/parcel-bundler/watcher/assets/1907443/5a549e3e-a2bf-4e62-a365-69bd106fa0c7

Works on Windows;
https://github.com/parcel-bundler/watcher/assets/1907443/92919ca8-c591-4214-94d7-5ec5b9e7de6e

UPDATE: Ok, so moving folder away works on Windows, but deleting it still triggers an event only for the folder, not recursively for the files inside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants