[Bug 189] New: std.path enhancements

Unknown W. Brackets unknown at simplemachines.org
Fri Jun 9 07:18:26 PDT 2006


I thought getDirName() was "parent()" (except named like I expect it to 
be, and available in other runtime libraries.)  You'd just call it 
multiple times for higher "up" values - no?

-[Unknown]


> 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"
> 
> extended method:
>    char[] join( char[] p1, char[] p2 )
>    would really be cool if it could join "real" relative paths (p2) such as
> "../sibling".



More information about the Digitalmars-d-bugs mailing list