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

On MacOs - Enhance handleFsEvent to manage file and directory events more precisely #51

Open
undici77 opened this issue Aug 26, 2024 · 0 comments

Comments

@undici77
Copy link

Environment: MacOS

Description:

When more than one instance of the FileWatch class (filewatch::FileWatch) is instantiated on MacOS, an unexpected behavior occurs: whenever a file change event is detected, all instances of FileWatch receive notifications for every file change, regardless of whether the change pertains to the specific files they are monitoring.

Steps to Reproduce:

Create multiple instances of filewatch::FileWatch, each monitoring different files or directories.
Make a change to any of the monitored files.
Observe that all instances are triggered, receiving events for files they are not supposed to monitor.

Expected Behavior:
Each FileWatch instance should only receive notifications for the specific files or directories it is monitoring. Events should be localized to the corresponding instance.

Actual Behavior:
All FileWatch instances receive file change notifications.

undici77 pushed a commit to undici77/filewatch that referenced this issue Aug 27, 2024
Fix issue because on macOs only only remove event was triggered
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

1 participant