3 ms·
"Each node scans for changes every sixty seconds". There isn't any portable way to get notfications about file changes instead of polling? I know about jnotify
by zyngaro 12y ago
"Each node scans for changes every sixty seconds". There isn't any portable way to get notfications about file changes instead of polling? I know about jnotify in Java but well it's in java.
- icebraining 12y agoI don't think there is. Joey Hess ended up having to support inotify, kqueue, hfsevents and ReadDirectoryChangesW for his git-annex assistant.
- phlyingpenguin 12y agoYou may have picked this up elsewhere in the conversation, but they are waiting on Go to have good cross platform support in the standard library for file change notification. This was originally going to be part of 1.3, but it's been pushed off to the next version of Go. https://github.com/calmh/syncthing/issues/9 https://github.com/calmh/syncthing/issues/9 https://code.google.com/p/go/issues/detail?id=4068 https://code.google.com/p/go/issues/detail?id=4068 https://docs.google.com/document/d/1-GQrFdDVrA57-ce0kbzSth4lQqfOMMRKpih3hPJmvoU/edit# https://docs.google.com/document/d/1-GQrFdDVrA57-ce0kbzSth4l...!