"The parameter is incorrect." error when watching files on Windows
goodsky opened this issue · comments
Trying to watch a file on Windows returns this error "The parameter is incorrect." A simple example that reproduces this issue.
root := "./test.txt" // this file exists
events := make(chan notify.EventInfo, 100)
if err := notify.Watch(root, events, notify.All); err != nil {
log.Fatal(err)
}
I have my suspicion that this may be related to my Go installation or disk setup. I will continue to debug, but posting here in case someone else has seen this before.
I haven't seen such error on Windows, could it be permissions to the current directory? Did you try different paths?