Commit 98ba945c authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-miner: Avoid crawling through children of non-recursive dir

The direct children would be crawled, which is pretty useless.
parent 4b7980b9
......@@ -444,7 +444,9 @@ file_notifier_add_node_foreach (GNode *node,
g_object_unref (file_info);
if (file_type == G_FILE_TYPE_DIRECTORY && !G_NODE_IS_ROOT (node)) {
if (file_type == G_FILE_TYPE_DIRECTORY &&
(priv->current_index_root->flags & TRACKER_DIRECTORY_FLAG_RECURSE) != 0 &&
!G_NODE_IS_ROOT (node)) {
/* Queue child dirs for later processing */
g_assert (node->children == NULL);
g_queue_push_tail (priv->current_index_root->pending_dirs,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment