The intuitive user setting is to set an exact number of items as lim; however, walkdir iterates from 0 to lim, thus scanning lim + 1 items.