You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
My JavaScript event handler was filtering out events where event.path was in a hidden directory (i.e. one where a parent folder's name started with a period).
When I move an item to the trash, I get a renamed event whose event.path is a hidden directory but whose event.oldPath is from one of my visible directories:
On macOS (and Windows when permanent deletion is turned off), "deleting" a file simply moves it to the recycle bin / trash. So the fact that you get a renamed event makes sense. You should close this issue since it's not a problem with the watcher.
Prerequisites
Description
watcher
is not firing adeleted
event when I move a file to the trash.Steps to Reproduce
I am running Kubuntu 21.04 and Node.js 12.21.0.
I set up a
watcher
instance watching my home directory withconst myWatcher = await watcher.watchPath(directory, {}, handleEvents);
I create a file in my home directory.
When I delete the file, I get a
deleted
event from my watcher.But when I move a file to the trash, I don't get any event from my watcher.
Expected behavior:
I expected to get a
deleted
event from my watcher.Actual behavior:
I don't get a
deleted
event from my watcher.Here's the output from my terminal:
I created
test1.txt
and then deleted it.I created
test2.txt
and then moved it to the trash.You'll note that I didn't get any event about that.
(I don't get a message when I empty my trash, either.)
Reproduces how often:
This happens 100% of the time.
Versions
Kubuntu 21.04.
Node.js 12.21.0.
Additional Information
watcher
is otherwise really great.I hope that this bug can be fixed.
Thank you.
The text was updated successfully, but these errors were encountered: