Closed andre2007 closed 6 years ago
This behavior is based on the UNIX style:
$ mv foo bar/foo
mv: cannot move 'foo' to 'bar/foo': No such file or directory
The dmd itself supports both approaches:
-of=<filename>
missing directories are created-deps=<filename>
you get Error writing file 'bar/foo'In our build file, it was easy enough to add a dependency on the directory. So, the build tool creates the directory for the test report (as well as for the object files and the dependencies).
On the other hand, the standard library already provides std.file.mkdirRecurse
.
If you create pull request, I will accept it.
I created pull request #16. Could you also check whether you can provide a new release? Thanks a lot.
While passing a file path via console argument "report" there is an exception thrown if the folder does not exist.
Could you create the folder(s) instead of throwing an exception?