Add directory_mode to common file parameters to prevent errors.
Merge pull request #6828 from hlieberman/devel

Fix issue #6812: directory_mode does not work