test and implementation of the ability to set the dirmode when adding a file
Merge pull request #60 from autotraderuk/master

Added ability to specify dirmode when adding a file