Add mode to put action directory creation

I am not sure why it is stated in the README file that you can specify the mode attribute in the put action, but in the code of the provider for put action, mode is not being passed to the base directory creation.
Added the attribute in the directory resource