]> go.fuhry.dev Git - fsnotify.git/commitdiff
Windows does not support attribute notifications - See README
authorChris Howey <howeyc@gmail.com>
Fri, 30 Mar 2012 20:54:12 +0000 (15:54 -0500)
committerChris Howey <howeyc@gmail.com>
Fri, 30 Mar 2012 20:54:12 +0000 (15:54 -0500)
README
fsnotify_windows.go

diff --git a/README b/README
index c27a19da976284dad505f2a507d5564a694e7869..8b9b8137ed04df5aaa44eb7cfebe38869513969b 100644 (file)
--- a/README
+++ b/README
@@ -19,4 +19,12 @@ Example:
     }
 
 Issues:
-Windows does not seem to have an attribute change notification
+It appears that windows does not have an attribute change notification
+http://msdn.microsoft.com/en-us/library/windows/desktop/aa364391(v=vs.85).aspx
+
+Notifications:
+IsCreate()
+IsDelete()
+IsModify()
+IsAttribute() * NOT SUPPORTED ON WINDOWS *
+IsRename()
index 3f90aa22ba946081ebc200a118cc7e3f4c34f698..1af40798255b2f32ec0d7f3fe529bca75234a350 100644 (file)
@@ -30,7 +30,7 @@ type FileEvent struct {
 func (e *FileEvent) IsCreate() bool { return (e.mask & FS_CREATE) == FS_CREATE}\r
 \r
 // IsDelete reports whether the FileEvent was triggerd by a delete\r
-func (e *FileEvent) IsDelete() bool { return (e.mask & FS_DELETE) == FS_DELETE }\r
+func (e *FileEvent) IsDelete() bool { return ((e.mask & FS_DELETE) == FS_DELETE || (e.mask & FS_DELETE_SELF) == FS_DELETE_SELF }\r
 \r
 // IsModify reports whether the FileEvent was triggerd by a file modification\r
 func (e *FileEvent) IsModify() bool { return (e.mask & FS_MODIFY) == FS_MODIFY }\r