Add separate file mode options for directories and sub files.

There are times people want to set different file modes for directories and files.
For example,I use chmodr with my nginx static files,I want set directories with mode 0755(will add files to it),but want files to be 0444(which is readonly).

Indentation does not match the rest of the file.