This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mv does copy instead of rename

Richard Foulk wrote:
In an Active Directory environment Windows Explorer was refusing to
rename a directory, presumably because the directory was open by
another process.

Why are you presuming this?  Didn't Windows report why this was not being

On trying mv under Cygwin to rename the directory, mv seemed to just
hang.  It was a large directory and mv was actually copying the files
to the new named directory (on the same partition.)

Does this seem like appropriate behaviour? It was certainly unexpected.

Well, if Windows can't tell you why it couldn't move the directory, Cygwin,
which relies on Windows for it's functionality, is probably not going to be
able to out-do Windows in this regard.  'mv' may have misinterpreted Window's
"confusion" here as a cross-device move, which is implemented as a copy
followed by a remove of the original directory.  But you'd have to investigate
it to know for sure.

I'm pretty sure mv is never supposed to do this on Unix.

Depends on the situation, as I noted above.

-- Larry Hall RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]