Copying and moving directories

Chris via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Feb 17 05:25:17 PST 2017


On Friday, 17 February 2017 at 11:40:35 UTC, Jonathan M Davis 
wrote:
>
> Well, there's a _long_ history of it being called rename on 
> POSIX systems, and since the D function is a simple wrapper 
> around rename, it makes sense that it's called rename, much as 
> I agree that the name isn't the best for anyone not familiar 
> with the C function. Regardless, changing it now would break 
> code, and at this point, we pretty much never rename public 
> symbols in Phobos just to improve their names.

Nobody wants to rename `rename` :-) But an additional `move` 
function would be nice.

>
> [...]

I agree. std.file needs more work.


More information about the Digitalmars-d-learn mailing list