[Issue 9530] std.path should have a function for getting the canonical path to a file or directory
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jul 5 07:42:40 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=9530
Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dlang-bugzilla at thecybershad
| |ow.net
--- Comment #2 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
This is a request for a realpath wrapper in Phobos, then?
FWIW, I would argue that almost everywhere I've seen a usage of realpath, it
was unnecessary and often even harmful - mainly because I think historically
libc did not provide an easy way to canonicalize a path without resolving
symlinks. But that's probably not a good reason to not provide a D wrapper for
a standard C function.
I'm not sure what to do with Windows, as there is no equivalent for it in
Windows libcs, and Windows implements symlinks (and reparse points in general)
very differently.
--
More information about the Digitalmars-d-bugs
mailing list