list directory contents if is directory

I added a small feature to display a file listing if the given file is of type directory.  This is useful for me and perhaps others, so here you go if you're interested!