Separate scan thread for each folders_id