]> go.fuhry.dev Git - fsnotify.git/commitdiff
BSD - roll attribute into modify
authorChris Howey <chris@howey.me>
Sat, 31 Mar 2012 00:09:12 +0000 (19:09 -0500)
committerChris Howey <chris@howey.me>
Sat, 31 Mar 2012 00:09:12 +0000 (19:09 -0500)
fsnotify_bsd.go

index 03f24deb65c591a4065e860fbffc8e7018f047ee..0d8e0e59d2dc5355deeeffd08d74b6dd76f08f0b 100644 (file)
@@ -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 }