Closed kireerik closed 6 years ago
What about Facebook’s watchman?
EPERM: operation not permitted, watch
There really isnt anything we can do to get around file system permissions. If you don't want to see the error or would like to handle the error differently, add an event listener for the error and handle it.
@balupton I didn't tried it.
@shama The issue also exists if I force delete the folder. Yes it is definitely a potential workaround.
I think we should probably keep this issue opened since it can be related to the other issue I have reported.
I can see somewhat similar, but really old issues however which are probably resolved and are closeable by now.
I dont see how it is related and I cannot fix EPERM
for you. If the library doesnt have permissions on your machine it simply doesnt have permissions. Either give it permissions, handle the error or ignore the error.
I don't want you to fix this for me. Also it looks like to me that Gaze is trying to watch something which was just deleted. Permanently deleting an empty directory works without any issue, but when you have at least one file in the folder it doesn't works (at least under Windows).
Related issue: https://github.com/shama/gaze/issues/44
No event is fired when a non-empty folder is deleted. Once it is deleted from the recycle bin I get the following error:
System:
Windows 10 Pro 1083
Gaze version:1.1.3
Note: @paulmillr's and @es128's chokidar, @balupton's @bevry's watchr and maybe @amasad's sane (I don't remember if I tried it or not.) has the exact same issue. I did't tried watch and node-pathwatcher, but they probably has this issue as well.