approvals / ApprovalTests.cpp

Native ApprovalTests for C++ on Linux, Mac and Windows
https://approvaltestscpp.readthedocs.io/en/latest/
Apache License 2.0
310 stars 50 forks source link

_mkdir fails when asked to create more than one directory #226

Open TeamPlatform1 opened 4 months ago

TeamPlatform1 commented 4 months ago

On windows, _mkdir is used to create directories. But _mkdir can only create one subdir at a time. If a TemplatedCustomNamer needs to create several new paths (existing: "d:\whatever\", needed: "d:\whatever\tests\mytest\approval\"), it will fail with an exception.

claremacrae commented 4 months ago

Hi, thanks for the report. I've edited the summary to make it clearer.

claremacrae commented 4 months ago

On windows, _mkdir is used to create directories. But _mkdir can only create one subdir at a time. If a TemplatedCustomNamer needs to create several new paths (existing: "d:\whatever", needed: "d:\whatever\tests\mytest\approval"), it will fail with an exception.

Please supply some sample code for us to use. Thank you.