fix bug in fs-watcher; file was never deleted from Files database when the parent dir still exists
Change-Id: I051f27de54b7f08c14253cfe250f603ee6d4be6b
diff --git a/fs-watcher/fs-watcher.cc b/fs-watcher/fs-watcher.cc
index cfb7f55..20f486c 100644
--- a/fs-watcher/fs-watcher.cc
+++ b/fs-watcher/fs-watcher.cc
@@ -128,6 +128,7 @@
_LOG_DEBUG ("Triggered DELETE of file: " << triggeredFile.relative_path ().generic_string ());
// m_onDelete (triggeredFile.relative_path ());
+ deleteFile(triggeredFile.relative_path());
Scheduler::scheduleOneTimeTask (m_scheduler, 0.5,
bind (m_onDelete, triggeredFile.relative_path ()),
"r-" + triggeredFile.relative_path ().string());