when-changed icon indicating copy to clipboard operation
when-changed copied to clipboard

Running when-changed on a VirtualBox guest and watching a file in a shared directory, changes made by the host are not detected

Open mh5 opened this issue 9 years ago • 3 comments

Some probably relevant info

$ pip show when-changed

---
Name: when-changed
Version: 0.3.0
Location: /usr/local/lib/python2.7/dist-packages
Requires: watchdog

Both the host and guest OSes are debian Jessie.

mh5 avatar Jul 09 '16 21:07 mh5

I believe this is an issue with the VirtualBox shared file system, which doesn't properly issue file changed events in the guest when a host file is changed.

dtgriscom avatar Dec 20 '16 15:12 dtgriscom

Yeah, not much we can do if we don't get any notifications from the file system. I guess we could fall back to polling...

joh avatar Mar 16 '17 19:03 joh

Just run into the same problem, can confirm that doesn't work if file is changed from host, works fine when file is changed from guest. (while inotifywait -e close_write foo.py; do ./bar.py; done doesn't work in either case)

+1 for optional polling

artcz avatar Mar 17 '17 07:03 artcz