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! 
Ugh, thanks for catching that.  Not sure how that happened.  I'm out of town but will fix and push on Monday.=