It's signature is:

(directory-files [dir dotfiles?])

Seems to me that dir and dotfiles? should be independent optional variables, if you specify a directory, you shouldn't have to also specify if you want to see the dot files.

- Harold