mkdirs create intermediate directories as required

When directory exits, change to this directory and create next directory in path. If trying to create a directory that exists as a file it will raise an exception '409 Conflict'