Skip to content

Commit 329bff6

Browse files
committed
(same behavior as nqp-p)
1 parent bc45c01 commit 329bff6

File tree

1 file changed

+2
-1
lines changed
  • src/vm/jvm/runtime/org/perl6/nqp/runtime

1 file changed

+2
-1
lines changed

src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import java.nio.file.LinkOption;
1818
import java.nio.file.Path;
1919
import java.nio.file.Paths;
20+
import java.nio.file.StandardCopyOption;
2021
import java.nio.file.attribute.FileTime;
2122
import java.nio.file.attribute.PosixFilePermission;
2223
import java.nio.file.attribute.PosixFilePermissions;
@@ -800,7 +801,7 @@ public static long copy(String before, String after, ThreadContext tc) {
800801
Path before_o = Paths.get(before);
801802
Path after_o = Paths.get(after);
802803
try {
803-
Files.copy(before_o, after_o);
804+
Files.copy( before_o, after_o, StandardCopyOption.REPLACE_EXISTING);
804805
}
805806
catch (Exception e) {
806807
die_s(IOExceptionMessages.message(e), tc);

0 commit comments

Comments
 (0)