diff options
author | deva <deva> | 2010-01-15 08:32:12 +0000 |
---|---|---|
committer | deva <deva> | 2010-01-15 08:32:12 +0000 |
commit | dfbab63fe9d17b797978e8b99b15ffa94099822e (patch) | |
tree | faac8cfe9ba9b4a5558193997b6a8ba36349b0ca /server/src/inotify.h | |
parent | 0485bd935b235e1162332ca145e7fbb6e5aecb3b (diff) |
Added filescan upon directory creation.
Diffstat (limited to 'server/src/inotify.h')
-rw-r--r-- | server/src/inotify.h | 10 |
1 files changed, 10 insertions, 0 deletions
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); |