Designed a new interface for dirlist.h