Changing directory mining to use scandir

scandir extracts all the directory information needed. ftw and nftw were not as simple for use as well as they have more features then are needed.