auto create mapping dir recursively