[Issue 6147] file scheme uri from file path and vice versa
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jan 25 09:42:21 PST 2015
https://issues.dlang.org/show_bug.cgi?id=6147
AndyC <andy at squeakycode.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |andy at squeakycode.net
Resolution|--- |FIXED
--- Comment #1 from AndyC <andy at squeakycode.net> ---
This question isn't very specific, I'm not sure what's being asked for.
"file scheme uri" sound like: file://c:\bob.txt --> c:\bob.txt
but the comment says "have to inverse slashes", which sounds like: c:\bob.txt
--> c:/bob.txt
First, windows, in most operations can use either slash.
auto f = File("c:\bob.txt")
auto f = File("c:/bob.txt")
should both work.
Second, there is std.path.buildNormalizedPath, and the doc for std.path
documents several other spots where different slashes are respected.
I'm guessing that was commit here:
https://github.com/D-Programming-Language/phobos/commit/6364506918446fb62816f92ac621a71bff88dbdf?diff=unified
I'm gonna close this, but please re-open if I've misunderstood the question.
(And maybe you could post some samples of what you're looking for)
--
More information about the Digitalmars-d-bugs
mailing list