[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] nvm.alt_tmpdir
From: |
Nathaniel Smith |
Subject: |
Re: [Monotone-devel] nvm.alt_tmpdir |
Date: |
Mon, 16 May 2011 13:44:06 -0700 |
On Mon, May 16, 2011 at 1:23 PM, Stephen Leake
<address@hidden> wrote:
> Note that 'mv' between two drives succeeds on Windows
Wouldn't it be easier to just enhance the POSIX move-this-file
function so that it checks if they're on the same filesystem (you can
get this from stat(2)), and then either calls rename(2) or does a
copy+unlink?
-- Nathaniel