scan directory only on empty queue.