]> go.fuhry.dev Git - fsnotify.git/commit
windows: simplify a bit (#493)
authorMartin Tournoij <martin@arp242.net>
Sat, 6 Aug 2022 17:56:40 +0000 (19:56 +0200)
committerGitHub <noreply@github.com>
Sat, 6 Aug 2022 17:56:40 +0000 (19:56 +0200)
commit5b87f505b0f63cbf60dfd97b7e4d06a414caafa9
tree23b864cac8cef75d63b929568bc97e01c968f729
parent2bfaa0051c953671a8879575f97ca718c52f8779
windows: simplify a bit (#493)

The sys* constants were used in the old golang.org/x/exp/winfsnotify
package on which this is based, but haven't been in use for a long time.

Remove the "one shot", "dir only", and "ignore" options as they were
never set. Also don't send "sysFSQOVERFLOW" as an event if the buffer is
too long; we already send an error and it's just a weird magical number
you get.

This could be simplified greatly more by removing the whole
sysFS… → windows.FILE_NOTIFY… → sysFS… conversions, but that's for
another day.
windows.go