Incorrect PR. Will resubmit

Specifying both a file and directory parameter did not work as documented.