Simon Frei
Simon Frei
Ok, that's a pity, I hoped there was. Maybe I can explain the use case and you have some idea how to solve it: I am implementing filesystem notifications for...
Yes it is an optimisation. Detecting a rename would be ideal, but isn't actually needed. And on linux there is only one Rename event produced during renaming, so how would...
Not exactly: I need either one of these two things: - A means to match two rename events on all supported platforms. - A means to detect all events that...
Thanks for your help, You have me convinced that I need to introduce platform-specific code. I was hoping to be able to go the lazy way by using your platform...
One more question: `InMovedTo` is mapped to `Create` in https://github.com/rjeczalik/notify/blob/master/watcher_inotify.go#L329 and `FILE_ACTION_RENAMED_NEW_NAME` is mapped to `Rename` in https://github.com/rjeczalik/notify/blob/master/watcher_readdcw.go#L553 Is my assumption incorrect that these two actions are equivalent?
Ok, so I can't assume the `Event` type can be bitmasked? I wanted to define my own `removeEventsMask` for different platforms like this ```go const removeEventMask = notify.FileActionRemoved | notify.FileActionRenamedOldName...
@ppknap Thanks again for your help, my limited experience shows here... Now I have a problem with passing native windows events to `Watch`: ```go if err := notify.Watch("./...", c, notify.FileActionAdded);...
@ppknap Now everything is up and running, thanks again for your patience. If you are interested, the code I am working on is https://github.com/syncthing/syncthing/pull/3986. Would you welcome a PR where...
> If you are interested, here is my answer that has all mappings from Windows filters to actions. As you see, you can remove ChangeSize and ChangeCreation events from your...
It is documented in https://docs.syncthing.net/users/config.html#folder-element, but from the point of view of the config file not the web UI and the explanation is minimal (e.g. not covering the specific question...