Grive / grive

an open source Linux client for Google Drive
http://www.lbreda.com/grive/start
GNU General Public License v2.0
1.59k stars 378 forks source link

directory watcher ( inotify support ) #34

Open OpenNingia opened 12 years ago

OpenNingia commented 12 years ago

This is not an issue but a suggestion, I crawled around the web to gain information about inotify and what I found was quite disappointing.

The main show stopper is that inotify doesn't support recursive directory watchers, and to code the recursive stuff ourself is quite silly ( lot's of work in balancing tree ).

However there exists a set of libraries and tools called inotify-tools that already implement the feature (using optimized redblack tree, which is neat)

take a look here: https://github.com/rvoicilas/inotify-tools/wiki/

I suggest using this stuff instead of directly linking to inotify

DavidLeeEvans commented 12 years ago

Seems like a good ideal, some distros all ready have the binaries inotify and inotify development packages, just a case of two more library dependencies.

match065 commented 12 years ago

How about the inotify-tools? Is this library common among distros?

OpenNingia commented 12 years ago

Debian and Ubuntu have it in the repos https://launchpad.net/ubuntu/+source/inotify-tools

nestal commented 12 years ago

Anyone working on this? We can discuss suggestions like these in the discussion group:

https://groups.google.com/forum/#!forum/grive-devel

flying-sheep commented 11 years ago

this is pretty vital for a functional daemon: cronjobs just don’t do the trick.

are there any news about this feature?

fvetsper commented 11 years ago

i working on it. i use inotify without the external packages. until now i implement the new file creation notify and also delete. working on recursive folder read.

please suggest if have any ideas