Issue 111: TestReSeekInotify failed

if "case fsnotify.Chmod" logic before "case fsnotify.Rename"
always `return changes.NotifyDeleted()`

Test case pass:
macOs 10.11.6 + go 1.6.2
Centos 6.4 + go 1.8
1 file changed
tree: 2143b7237efd0593ab0a595ecddf962a248edfc5
  1. cmd/
  2. Godeps/
  3. ratelimiter/
  4. util/
  5. vendor/
  6. watch/
  7. winfile/
  8. .gitignore
  9. .travis.yml
  10. appveyor.yml
  11. CHANGES.md
  12. Dockerfile
  13. LICENSE.txt
  14. Makefile
  15. README.md
  16. tail.go
  17. tail_posix.go
  18. tail_test.go
  19. tail_windows.go
README.md

Build Status Build status

Go package for tail-ing files

A Go package striving to emulate the features of the BSD tail program.

t, err := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true})
for line := range t.Lines {
    fmt.Println(line.Text)
}

See API documentation.

Log rotation

Tail comes with full support for truncation/move detection as it is designed to work with log rotation tools.

Installing

go get github.com/hpcloud/tail/...

Windows support

This package needs assistance for full Windows support.