Added function getDirectoryListing in preparation for SendDirectory