Skip to content

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.

3 participants