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 panic when file/dir is deleted #96

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

Conversation

tul
Copy link

@tul tul commented Feb 7, 2020

Sometimes when a file/dir which is being watched is deleted a panic will occur. This appears to be because there is an assumption that if an error returns true for IsNotExist() that it should be castable to os.PathError, but this evidently is not always the case, causing a panic.

sometimes when a file/dir which is being watched is
deleted a panic will occur. This appears to be because
the is an assumption that if an error returns true for
`IsNotExist()` that it should be castable to `os.PathError`,
but this evidently is not always the case, causing a panic.
@i-Sohel
Copy link

i-Sohel commented Apr 13, 2020

Hi @radovskyb any plans to review and merge this anytime soon? I'm hitting the same issue as @tul

dideler added a commit to dideler/watcher that referenced this pull request Apr 21, 2020
@mtojek
Copy link

mtojek commented Jun 24, 2020

@radovskyb +1 to merge this change as is. It's really annoying for directories with dense create and delete operations.

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.

None yet

3 participants