-
Notifications
You must be signed in to change notification settings - Fork 5
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
follow_path() on windows just loops over the file #2
Comments
Looks like os.stat(...).st_ino doesn't work on windows on python 2.7. Always returns 0. So everything breaks. |
@vasakt Interesting. What solution would you propose in that case? We could resort to some WinAPI call here through ctypes. |
Not sure of the best solution but I believe that you could use the win32file package. Something like:
might work. |
@vasakt I want to find out what was modified in CPython to get it to work. Probably I will be able to just port this approach. |
I think on windows you could just compare the creation times of the files to check if the file has been recreated. Replacing |
Within a certain interval. Probably good enough as a first approach to the problem. |
Hi
I'm finding that follow_path() on windows just loops over the same file, over and over without waiting at the end of file.
on a file with lines 1 2 3 .. 11 gives line 1, 2, 3, .., 11, 1, 2, ... over and over.
Thanks
The text was updated successfully, but these errors were encountered: