Copying and moving directories

Chris via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Feb 16 08:47:05 PST 2017


On Thursday, 16 February 2017 at 16:41:48 UTC, Adam D. Ruppe 
wrote:
> On Thursday, 16 February 2017 at 16:38:51 UTC, Chris wrote:
>> In `std.file`, I haven't found a function that allows me to 
>> move or at least copy directories, as in `mv dir /toDir`. Do I 
>> have to go the awkward way over `rename` or something?
>
> Have you already tried just renaming the directory?

Yes, but that's a bit awkward. It'd be handier to have a function 
like `mv(dir, toDir)`.


More information about the Digitalmars-d-learn mailing list