Poll a directory for changes and re-touch changed paths so that inotify- incapable mounts (like CIFS) receive inotify events anyway.
Project description
This is essentially a horrible hacky solution to the fact that CIFS mounts cannot forward file-system event to inotify on linux. This in turn makes it so any number of “on-demand” compilers (e.g. compass, coffee-script) stop working when applied to mounted shares (among other things).
The idea is to use the watchdog library to monitor a given directory using shitty-old polling, and then poke at the local filesystem so that inotify (and hopefully your apps/tools) pick up the changes. It is almost certainly a very bad idea to run this on a large file structure and/or over a slow network.
Also note that only modification events can sanely be simulated this way. If you absolutely need some form of rm or mv event simlation, you may enable a less-then-sane behavior for such things using –simulate-rm and –simulate-mv respectively.
With that in mind, simply run watchntouch in the directory you’d like to watch, or see watchntouch -h for more options.
Installation on most platforms should be available via pip install watchntouch.
Good luck!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file watchntouch-1.0.tar.gz
.
File metadata
- Download URL: watchntouch-1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7d00fc99b12f6e20e90539c37585c00df1a007af28d628253860740acda79c0 |
|
MD5 | c2fc831b4c88c687e1b92cb9545268a2 |
|
BLAKE2b-256 | 4d4a4c519a8c94f142a9c4d0f73d32f80e3364d1c75baf6055d1102375e2bfb1 |