Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fsnotify doesn't work with Windows, polling does #181

Open
tommyblue opened this issue Mar 21, 2021 · 2 comments
Open

fsnotify doesn't work with Windows, polling does #181

tommyblue opened this issue Mar 21, 2021 · 2 comments

Comments

@tommyblue
Copy link

The simple example in the README doesn't work with Windows 10 Pro x64 (Version 10.0.19042 Build 19042).
Adding Poll: true, insted, works:

t, err := tail.TailFile(fpath, tail.Config{Follow: true, Poll: true})
for line := range t.Lines {
	fmt.Println(line.Text)
}

I think you could mention it in the README

@Licoy
Copy link

Licoy commented Dec 2, 2021

@tommyblue I also encountered this problem, but now I have used the system command to solve it and developed a dependency. You can refer to: https://github.com/Licoy/stail

@ericwgr
Copy link

ericwgr commented Sep 25, 2023

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants