Skip to content

I want to use ReadDirectoryChanges to watch subtree on windows. Do you have any ideas? #397

@mstmdev

Description

@mstmdev

fsnotify/windows.go

Lines 351 to 352 in 466b39d

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions