Copy Module: Add the ability to set directory attributes on recursive copy.

Closes GH-6194.

These changes pass attribute modifications through to new directories during a recursive copy with an addition allowing for the directory mode to be set independently.

Tested with: https://gist.github.com/risaacson/4a8a1e8e344f2327b6de