summaryrefslogtreecommitdiff
path: root/server/src/inotify.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/inotify.h')
-rw-r--r--server/src/inotify.h10
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);