Re: Proposed addition to File::Copy: move
In article <
1996Dec11.184718.1613163@hmivax>, bailey@genetics.upenn.edu (Charles Bailey) writes:
> It's been mentioned a couple times that a file renaming function with
> semantics similar to the Unix "mv" command (rename if possible, else
> copy) would be a nice addition to File::Copy. Here's a patch; what
> do people think of it? (It also includes changes to make File::Copy
> 'strict' and '-w' clean.)
Of course, seconds after I post the patch, I find a case where rename()
returns ENODEV instead of EXDEV for a cross-device copy. Appended is
a patch which allows this; if the target device really doesn't exist,
copy() will prompylt fail with the same error.
p5p-msgid: <
1996Dec11.185807.1613164@hmivax.humgen.upenn.edu>
private-msgid: <01ICZBN0LR
C8001A1D@hmivax.humgen.upenn.edu>