Skip to content

Commit

Permalink
Fix testng-team#2770: FileAlreadyExistsException on copy
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Nov 6, 2022
1 parent b484be1 commit ff1cad9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -92,7 +92,7 @@ public void generateReport(
}
File fileToCopy = new File(outputDirectory, fileName);
fileToCopy.getParentFile().mkdirs();
java.nio.file.Files.copy(is, fileToCopy.toPath());
java.nio.file.Files.copy(is, fileToCopy.toPath(), java.nio.file.StandardCopyOption.REPLACE_EXISTING);
}
}
all = Files.readFile(header);
Expand Down

0 comments on commit ff1cad9

Please sign in to comment.