OutpostUniverse / OP2Utility

C++ library for working with Outpost 2 related files and tasks.
MIT License
4 stars 0 forks source link

When attempting to create a file with the same name as a directory, F… #326

Closed Brett208 closed 4 years ago

Brett208 commented 4 years ago

…ileWriter can present a more specific error.

This one does not have to be merged if it is controversial, but it seemed easier to just demonstrate in code than write an issue.

I was confused for a while because earlier I had created a test.vol directory for testing purposes. The code kept telling me the file already existed even though I was passing the overwrite flag. Took me a while to diagnose.

Brett208 commented 4 years ago

Ok, ready to merge now. In the future, I'd like to improve the unit tests so we check the correct throw statement is hit.