-
-
Notifications
You must be signed in to change notification settings - Fork 966
emits CREATE when it should have been REMOVE #404
Description
Before reporting an issue, please ensure you are using the latest release of fsnotify.
Which operating system (GOOS) and version are you using?
> cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.15.0
PRETTY_NAME="Alpine Linux v3.15"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
Please describe the issue that occurred.
Basically I am running an application that uses fsnotify in docker and I am manually creating and removing files just to see the events, and sometimes it reports CREATE when it should have been a REMOVE.
Are you able to reproduce the issue? Please provide steps to reproduce and a code sample if possible.
What I would do is make a Dockerfile with alpine:latest and copy the example you have in github. Mount a directory and watch that directory and just delete and create files on the host, not the container, and you'll see it. It happens pretty often, but not all the time.
I dont know if this is an issue with containers, mounting volumes, and deleting from the host or an issue just in general. In general, as in not using docker and being able to repo this since I've only tried it using docker and creating/deleting files on the host.
Okay looks to be an issue with potentially with either docker or alpine linux.