|
e := syscall.ReadDirectoryChanges(watch.ino.handle, &watch.buf[0], |
|
uint32(unsafe.Sizeof(watch.buf)), false, mask, nil, &watch.ov, 0) |
Because when I add all of sub dir to Watcher, and try to remove the parent dir, it asked me for an administrators role.
So I try to changed ReadDirectoryChanges's watchSubTree by true, then it worked.