libtracker-miner: Avoid info queries on TrackerCrawler directories
When asking to crawl a directory, we always perform a info query on the directory itself. However, most often this is a directory that is being recursively inspected, thus comes from the TrackerCrawler itself. This brings 2 benefits: - Most often we avoid a redundant file info query - We now only call check_directory() once per directory, fixing the accounting of directories in our debug output.
Showing with 8 additions and 17 deletions