Re: Copying and moving directories

2017-02-17 Thread Chris via Digitalmars-d-learn
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

Re: Copying and moving directories

2017-02-17 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, February 17, 2017 11:00:30 Chris via Digitalmars-d-learn wrote: > On Thursday, 16 February 2017 at 17:06:30 UTC, Jonathan M Davis > > wrote: > > Well, there's zero difference between renaming the file or > > directory and moving it. It's simply a difference in name. > > rename actually

Re: Copying and moving directories

2017-02-17 Thread Chris via Digitalmars-d-learn
On Thursday, 16 February 2017 at 17:06:30 UTC, Jonathan M Davis wrote: Well, there's zero difference between renaming the file or directory and moving it. It's simply a difference in name. rename actually comes from POSIX, where rename is used in C code, and mv is used in the shell. So, I

Re: Copying and moving directories

2017-02-17 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, February 17, 2017 08:48:03 Kagamin via Digitalmars-d-learn wrote: > On Thursday, 16 February 2017 at 17:06:30 UTC, Jonathan M Davis > > wrote: > > Well, there's zero difference between renaming the file or > > directory and moving it. It's simply a difference in name. > > Isn't there a

Re: Copying and moving directories

2017-02-17 Thread Kagamin via Digitalmars-d-learn
On Thursday, 16 February 2017 at 17:06:30 UTC, Jonathan M Davis wrote: Well, there's zero difference between renaming the file or directory and moving it. It's simply a difference in name. Isn't there a difference? I though move("/path/dir1","dir2") moves folder to current directory and

Re: Copying and moving directories

2017-02-16 Thread Daniel Kozák via Digitalmars-d-learn
V Thu, 16 Feb 2017 16:38:51 + Chris via Digitalmars-d-learn napsáno: > 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?

Re: Copying and moving directories

2017-02-16 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, February 16, 2017 16:47:05 Chris via Digitalmars-d-learn wrote: > 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

Re: Copying and moving directories

2017-02-16 Thread Chris via Digitalmars-d-learn
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

Re: Copying and moving directories

2017-02-16 Thread Adam D. Ruppe via Digitalmars-d-learn
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?

Copying and moving directories

2017-02-16 Thread Chris via Digitalmars-d-learn
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?