auto create mapping dir