forked from schacon/perl
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: <01ICZBN0LRC8001A1D@hmivax.humgen.upenn.edu>
- Loading branch information
Charles Bailey
authored and
Chip Salzenberg
committed
Dec 19, 1996
1 parent
e1f0c0a
commit 441496b
Showing
2 changed files
with
81 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters