On Saturday, 22 September 2018 at 21:04:04 UTC, Vladimir
Panteleev wrote:
On Saturday, 22 September 2018 at 20:46:27 UTC, Jonathan Marler
wrote:
Decided to play around with this for a bit. Made a "proof of
concept" library:
I suggest using GetFullPathNameW instead of GetCurrentDirectory
+ manual path appending / normalization. It's also what CoreFX
seems to be doing.
Yes that allows the library to avoid calling buildNormalizedPath.
I've implemented and pushed this change. This change also
exposed a weakness in the Appender interface and I've created a
bug for it:
https://issues.dlang.org/show_bug.cgi?id=19259
The problem is there's no way to extend the length of the data in
an appender if you don't use the `put` functions. So when I call
GetFullPathNameW function to populate the data (like the .NET
CoreFX implementation does) I can't extend the length.