Add indexing when scanning directories
Deleted indexes when directories are removed or forcefully rescanned