make dirs if not exist in test
Merge remote-tracking branch 'upstream/develop' into sam_raet_38
Merge pull request #12110 from SmithSamuelM/sam_raet_38

Added makedirs to mock in test