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

Ensure consistent behavior when a root watched directory is deleted #59

Open
gmethvin opened this issue Dec 27, 2020 · 0 comments
Open

Comments

@gmethvin
Copy link
Owner

Currently, our macOS watch service fires an ENTRY_DELETE event on deletion of the root. The default JDK watchers don't appear to do this.

One solution for consistency is to simply update the implementation to not fire an event for the root.

It might make sense for DirectoryWatcher to fire a special type of event like ROOT_DELETED in this case. An application might want to handle that case specially because the watcher stops watching that directory completely once it's been deleted.

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