summaryrefslogtreecommitdiff
path: root/zen/dir_watcher.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:30:42 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:30:42 +0200
commit767bb3951c65e38627cb0bbad9a3756e1cda2520 (patch)
tree460b18606d2c3472d5aa08444db4db62c6410248 /zen/dir_watcher.h
parent6.0 (diff)
downloadFreeFileSync-767bb3951c65e38627cb0bbad9a3756e1cda2520.tar.gz
FreeFileSync-767bb3951c65e38627cb0bbad9a3756e1cda2520.tar.bz2
FreeFileSync-767bb3951c65e38627cb0bbad9a3756e1cda2520.zip
6.1
Diffstat (limited to 'zen/dir_watcher.h')
-rw-r--r--zen/dir_watcher.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/zen/dir_watcher.h b/zen/dir_watcher.h
index 233bdc59..bc9714a0 100644
--- a/zen/dir_watcher.h
+++ b/zen/dir_watcher.h
@@ -21,13 +21,16 @@ namespace zen
//watch directory including subdirectories
/*
!Note handling of directories!:
- Linux: newly added subdirectories are reported but not automatically added for watching! -> reset Dirwatcher!
- removal of top watched directory is NOT notified!
- Windows: removal of top watched directory also NOT notified (e.g. brute force usb stick removal)
+ Windows: removal of top watched directory is NOT notified (e.g. brute force usb stick removal)
however manual unmount IS notified (e.g. usb stick removal, then re-insert), but watching is stopped!
Renaming of top watched directory handled incorrectly: Not notified(!) + additional changes in subfolders
now do report FILE_ACTION_MODIFIED for directory (check that should prevent this fails!)
+ Linux: newly added subdirectories are reported but not automatically added for watching! -> reset Dirwatcher!
+ removal of top watched directory is NOT notified!
+
+ OS X: everything works as expected; renaming of top level folder is also detected
+
Overcome all issues portably: check existence of top watched directory externally + reinstall watch after changes in directory structure (added directories) are detected
*/
class DirWatcher
@@ -38,9 +41,9 @@ public:
enum ActionType
{
- ACTION_CREATE,
- ACTION_UPDATE,
- ACTION_DELETE,
+ ACTION_CREATE, //informal only!
+ ACTION_UPDATE, //use for debugging/logging only!
+ ACTION_DELETE, //
};
struct Entry
bgstack15