Update to the directory listing code to make it more efficient.
removal of left in console.log.