Skip to content

"The parameter is incorrect." error when watching files on Windows #225

Open
@goodsky

Description

@goodsky

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions