phobos: std.path enhancements
Carlos Santander
csantander619 at gmail.com
Mon Jun 12 06:40:58 PDT 2006
SLI escribió:
> How about this enhancement for std.path:
>
> new method:
> char[] parent( char[] path, int up = 1 )
> returns the parent path name of the given path, up indicates the levels for
> "walking up", ´0´ would simply return the path parameter, ´1´ the parent, ..
>
This was already answered in the bugs ng.
> extended method:
> char[] join( char[] p1, char[] p2 )
> it would be really nice if join() could also join "real" relative paths (p2)
> such as "../sibling".
>
I think this was proposed before and, IIRC, people generally didn't agree mainly
because symbolic links would make it confusing or difficult or something else.
> If helpfull I could provide the "authors" with a win specific implementation
> e.g. to be used as a starting point.
>
>
--
Carlos Santander Bernal
More information about the Digitalmars-d
mailing list