show directory listing if given file is a directory