support custom file and dir creation modes
Merge pull request #1 from scout/master

support custom file and dir creation modes