Now outputs the contents of $dir.