fsnotify
fsnotify copied to clipboard
File system notification for Go
I've had to implement this several times now, and I really think that a recursive option should be part of the core API because it really is needed in many...
1, if I drag 5 files to the monitored folder, each ~170MB, only the first 3 trigger the CREATE event; 2, if the monitored files are deleted, but are still...
Hi. go version go1.3.1 linux/amd64 I runed 2 containers: 1) with application source code in volume. 2) with daemon (https://github.com/beego/bee) which listen changes of files in volumes (--volumes-from app_container) in...
I apologize ahead of time for this bug report. I'm using fsnotify to watch templates during development as a trigger to reload them into the program. However, for whatever reason,...
This seems much more complete than exp/inotify, maybe you could propose it for inclusion in the main distribution? Great work, thanks!
An fd-per-watch quickly consumes more file descriptors than are allowed. Would you accept a patch that uses a single inotify instance and multiple watchers? This appears to be the [approach...
Hi, One chap submitted a pull request to watch the entire GOPATH worth of source: https://github.com/robfig/revel/pull/153 That seems to work in inotify (and I believe windows as well) -- however,...
``` package main import ( // "bytes" "fmt" "github.com/howeyc/fsnotify" "log" //"os/exec" //"strings" ) func main() { watcher, err := fsnotify.NewWatcher() if err != nil { log.Fatal(err) } done := make(chan...
``` ln -sf /var/log/scribe/wtf_125 /var/log/scribe/wtf_current ``` appears as: ``` 2014/07/08 13:28:03 "/var/log/scribe/wtf_current": DELETE ``` in `strace it looks like this`: ``` stat("/var/log/scribe/wtf_current", {st_mode=S_IFREG|0600, st_size=29, ...}) = 0 lstat("/var/log/scribe/wtf_current", {st_mode=S_IFLNK|0777, st_size=23,...
Note: I don't necessarily need this in a cross-platform way, Linux-only would be fine. But cross-platform is always nice. I'm making a recursive watcher for a medium-sized folder structure (~50000...