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

Fix fsnotify.Remove logic function. #778

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhanluxianshen
Copy link

@zhanluxianshen zhanluxianshen commented Nov 8, 2024

1 Use simple grammar in fsnotify package.

This makes checking events a lot easier; for example:

  if event.Op&Write == Write && !(event.Op&Remove == Remove) {
  }
Becomes:

  if event.Has(Write) && !event.Has(Remove) {
  }

According fsnotify notes

Fix Remove event.

@tariq1890 tariq1890 requested a review from elezar November 8, 2024 19:06
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

Successfully merging this pull request may close these issues.

2 participants