summaryrefslogtreecommitdiff
path: root/zen/dir_watcher.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2015-10-02 14:55:19 +0200
committerDaniel Wilhelm <daniel@wili.li>2015-10-02 14:55:19 +0200
commit46fc289a8776ba253e97d01d6948fb1031ea1973 (patch)
treeb16a99c60f21b04c001f29862bf2ee16ae3a0e00 /zen/dir_watcher.h
parent6.15 (diff)
downloadFreeFileSync-46fc289a8776ba253e97d01d6948fb1031ea1973.tar.gz
FreeFileSync-46fc289a8776ba253e97d01d6948fb1031ea1973.tar.bz2
FreeFileSync-46fc289a8776ba253e97d01d6948fb1031ea1973.zip
7.0
Diffstat (limited to 'zen/dir_watcher.h')
-rw-r--r--zen/dir_watcher.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/zen/dir_watcher.h b/zen/dir_watcher.h
index b5255898..cdc80165 100644
--- a/zen/dir_watcher.h
+++ b/zen/dir_watcher.h
@@ -21,7 +21,8 @@ namespace zen
//watch directory including subdirectories
/*
!Note handling of directories!:
- Windows: removal of top watched directory is NOT notified (e.g. brute force usb stick removal)
+ Windows: removal of top watched directory is NOT notified when watching the dir handle, e.g. brute force usb stick removal,
+ (watchting for GUID_DEVINTERFACE_WPD OTOH works fine!)
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!)
@@ -36,7 +37,7 @@ namespace zen
class DirWatcher
{
public:
- DirWatcher(const Zstring& directory); //throw FileError
+ DirWatcher(const Zstring& dirPath); //throw FileError
~DirWatcher();
enum ActionType
@@ -62,6 +63,8 @@ private:
DirWatcher (const DirWatcher&) = delete;
DirWatcher& operator=(const DirWatcher&) = delete;
+ const Zstring baseDirPath;
+
struct Pimpl;
std::unique_ptr<Pimpl> pimpl_;
};
bgstack15