NOT TESTED: Add dir_list::len member to keep number of items in list.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>