File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -715,7 +715,8 @@ Defined as:
715
715
716
716
Copies a file. Returns C < True > on success; L < fails|/routine/fail >
717
717
with L < X::IO::Copy > if C < :$createonly > is C < True > and the C < $to > path already
718
- exists or if the operation failed for some other reason.
718
+ exists or if the operation failed for some other reason, such as when
719
+ C < $to > and C < $from > are the same file.
719
720
720
721
= head2 routine move
721
722
@@ -727,7 +728,8 @@ Defined as:
727
728
Copies a file and then removes the original. If removal fails, it's possible
728
729
to end up with two copies of the file. Returns C < True > on success;
729
730
L < fails|/routine/fail > with L < X::IO::Move > if C < :$createonly > is C < True > and
730
- the C < $to > path already exists or if the operation failed for some other reason.
731
+ the C < $to > path already exists or if the operation failed for some other reason,
732
+ such as when C < $to > and C < $from > are the same file.
731
733
732
734
To avoid copying, you can use L « C < rename > |/routine/rename» , if the files are on
733
735
the same storage device. It also works with directories, while C < move > does not.
You can’t perform that action at this time.
0 commit comments