commit | 8611c35ab31c1c28aa903d33cf8b6e44a399b09e | [log] [tgz] |
---|---|---|
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | Sun Jan 10 15:04:37 2016 |
committer | Nathan Youngman <git@nathany.com> | Thu Jan 14 02:10:36 2016 |
tree | b590050905bc53ee3f51bff232358f1973ea6f3e | |
parent | 508915b7500b6e42a87132e4afeb4729cebc7cbb [diff] |
kqueue: fix Remove-logic `os.Lstat` does not return `error` when a file/directory exists, so the code path to check for newly created files after a REMOVE on BSD was never executed. Also, if the watched entry is a file, it has been removed from the watcher, so do a new-file-check for them as well. This commit fixes issues on TextMate on OS X and others that uses `exchangedata` to do atomic saves. See #17. closes #111.
Go 1.3+ required.
Cross platform: Windows, Linux, BSD and OS X.
Adapter | OS | Status |
---|---|---|
inotify | Linux 2.6.27 or later, Android* | Supported |
kqueue | BSD, OS X, iOS* | Supported |
ReadDirectoryChangesW | Windows | Supported |
FSEvents | OS X | Planned |
FEN | Solaris 11 | Planned |
fanotify | Linux 2.6.37+ | |
USN Journals | Windows | Maybe |
Polling | All | Maybe |
* Android and iOS are untested.
Please see the documentation for usage. Consult the Wiki for the FAQ and further information.
Two major versions of fsnotify exist.
fsnotify.v0 is API-compatible with howeyc/fsnotify. Bugfixes may be backported, but I recommend upgrading to v1.
import "gopkg.in/fsnotify.v0"
* Refer to the package as fsnotify (without the .v0 suffix).
fsnotify.v1 provides a new API based on this design document. You can import v1 with:
import "gopkg.in/fsnotify.v1"
Further API changes are planned, but a new major revision will be tagged, so you can depend on the v1 API.
Master may have unreleased changes. Use it to test the very latest code or when contributing, but don't expect it to remain API-compatible:
import "github.com/go-fsnotify/fsnotify"
Please refer to CONTRIBUTING before opening an issue or pull request.
See example_test.go.