-
Notifications
You must be signed in to change notification settings - Fork 40
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
winapi.watch_for_file_changes only returns filename to callback #14
Comments
Good point - we should return both values. |
so you will fix it? :-) |
Oh yes! I'm Linuxing at work, but I'll fix it tonight. |
I had a look at test-watcher.lua in the examples folder, and we do get the notification code as well as the file name. There I've just passed |
same as before, just the filename. I installed via luarocks - version 1.4.2-1 |
That is the version I'm working with, yes. With that version, if I just pass Have a look at https://github.com/stevedonovan/winapi/blob/master/examples/test-watcher.lua |
yes, I have ran that. here is output (typed, not cut&pasted): out.txt then a long sequence of: followed by: |
I have run on Win7 on real hardware and on VMWare. let me know if I can provide any more info etc. |
this code from docs:
winapi.watch_for_file_changes(dir, winapi.FILE_NOTIFY_CHANGE_LAST_WRITE, FALSE,
function(who,what)
print(who,what)
end
)
as well as test-watcher.lua, only returns a single value - the filename of the file. Do not get value such as winapi.FILE_ACTION_MODIFIED to identify the nature of the change event.
running on Windows 7 SP1 32-bit, lua 5.1.4
The text was updated successfully, but these errors were encountered: