From a9691b00ba1c04e21f3f30c8e716545af3f33797 Mon Sep 17 00:00:00 2001 From: Chris Howey Date: Fri, 30 Mar 2012 19:09:12 -0500 Subject: [PATCH] BSD - roll attribute into modify --- fsnotify_bsd.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fsnotify_bsd.go b/fsnotify_bsd.go index 03f24de..0d8e0e5 100644 --- a/fsnotify_bsd.go +++ b/fsnotify_bsd.go @@ -50,10 +50,7 @@ func (e *FileEvent) IsCreate() bool { return e.create } func (e *FileEvent) IsDelete() bool { return (e.mask & NOTE_DELETE) == NOTE_DELETE } // IsModify reports whether the FileEvent was triggerd by a file modification -func (e *FileEvent) IsModify() bool { return (e.mask & NOTE_WRITE) == NOTE_WRITE } - -// IsAttribute reports whether the FileEvent was triggerd by a change of attributes -func (e *FileEvent) IsAttribute() bool { return (e.mask & NOTE_ATTRIB) == NOTE_ATTRIB } +func (e *FileEvent) IsModify() bool { return ((e.mask & NOTE_WRITE) == NOTE_WRITE || (e.mask & NOTE_ATTRIB) == NOTE_ATTRIB) } // IsRename reports whether the FileEvent was triggerd by a change name func (e *FileEvent) IsRename() bool { return (e.mask & NOTE_RENAME) == NOTE_RENAME } -- 2.50.1