I would also print a statement saying --- directory not empty, retrying.