Comment #0 by andrej.mitrovich — 2013-06-12T17:39:51Z
On Windows:
-----
import std.stdio;
import std.path;
void main()
{
string absolute = r"C:\";
string relative = r"\foo";
assert(isAbsolute(absolute));
assert(!isAbsolute(relative));
writeln(buildPath(absolute, relative)); // writes \foo
}
-----
Interestingly if you swap the arguments around you get back C:\.
Python does it properly:
>>> import os.path
>>> os.path.join("C:\\", "\\foo")
'C:\\foo'
Comment #1 by bugzilla — 2013-07-28T09:56:36Z
I have an improved implementation of buildPath() in the works. I'll ensure it behaves correctly for this case.