[tracker/miner-fs-refactor: 105/110] libtracker-miner: Remove deleted folders from being tracked
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/miner-fs-refactor: 105/110] libtracker-miner: Remove deleted folders from being tracked
- Date: Wed, 16 Nov 2011 14:45:57 +0000 (UTC)
commit 3b11a7c65b24b220a0e278a31869e31da4850827
Author: Carlos Garnacho <carlos lanedo com>
Date: Thu Oct 20 19:19:22 2011 +0200
libtracker-miner: Remove deleted folders from being tracked
Directories are now removed from the TrackerFileSystem if a delete
monitor event happens on a dir.
src/libtracker-miner/tracker-file-notifier.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 5ac7761..22753ee 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -817,6 +817,13 @@ monitor_item_deleted_cb (TrackerMonitor *monitor,
canonical = tracker_file_system_get_file (priv->file_system,
file, file_type, NULL);
g_signal_emit (notifier, signals[FILE_DELETED], 0, canonical);
+
+ if (is_directory) {
+ /* Delete all files underneath this dir from the filesystem */
+ tracker_file_system_delete_files (priv->file_system,
+ file,
+ G_FILE_TYPE_UNKNOWN);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]