ENH Changed the way that listing directories work to a recusive style