ensure the makedirs creates all parent directories and not just the one one level above the path parameter
Merge pull request #4525 from geops/makedirs_make_all_parents

ensure the makedirs creates all parent directories and not just the one one level above the path parameter