| 1 | // Copyright (c) 2014-2015 The Notify Authors. All rights reserved. |
| 2 | // Use of this source code is governed by the MIT license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // +build darwin,kqueue darwin,!cgo dragonfly freebsd netbsd openbsd solaris illumos |
| 6 | |
| 7 | package notify |
| 8 | |
| 9 | type event struct { |
| 10 | p string |
| 11 | e Event |
| 12 | d bool |
| 13 | pe interface{} |
| 14 | } |
| 15 | |
| 16 | func (e *event) Event() Event { return e.e } |
| 17 | |
| 18 | func (e *event) Path() string { return e.p } |
| 19 | |
| 20 | func (e *event) Sys() interface{} { return e.pe } |
| 21 | |
| 22 | func (e *event) isDir() (bool, error) { return e.d, nil } |