]> go.fuhry.dev Git - fsnotify.git/commit
kqueue: fix Remove-logic
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 10 Jan 2016 15:04:37 +0000 (16:04 +0100)
committerNathan Youngman <git@nathany.com>
Thu, 14 Jan 2016 02:10:36 +0000 (19:10 -0700)
commit8611c35ab31c1c28aa903d33cf8b6e44a399b09e
treeb590050905bc53ee3f51bff232358f1973ea6f3e
parent508915b7500b6e42a87132e4afeb4729cebc7cbb
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.
CHANGELOG.md
integration_darwin_test.go [new file with mode: 0644]
kqueue.go