From dfbab63fe9d17b797978e8b99b15ffa94099822e Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 15 Jan 2010 08:32:12 +0000 Subject: Added filescan upon directory creation. --- server/src/inotify.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'server/src/inotify.h') diff --git a/server/src/inotify.h b/server/src/inotify.h index 5199055..cbf75b2 100644 --- a/server/src/inotify.h +++ b/server/src/inotify.h @@ -64,6 +64,8 @@ public: bool isMovedFromEvent(); bool isMovedToEvent(); + bool isDir(); + std::string name(); std::string file(); uint32_t mask(); @@ -78,6 +80,14 @@ public: ~INotify(); void addFile(std::string name, uint32_t mask = IN_ALL_EVENTS); + + /** + * WARNING: If a directory is added with WATCH_DEEP_FOLLOW, newly + * created folders will not be added to the watch before the next call + * to hasEvents or getNextEvent. thie means that any files created in + * that folder prior to htese calls will not be caught. This will need + * to be done mnually by a recursive scan. + */ void addDirectory(std::string name, depth_t depth = WATCH_SINGLE, uint32_t mask = IN_ALL_EVENTS); -- cgit v1.2.3