The method is documented as "overwriting any existing content" but accepts a CopyOptions().withOverwrite(false) and then overwrites the file
|
/** |
|
* Copies the contents of `sourceFile` to the location of `targetFile`, overwriting any existing content. |
|
* |
|
* See [[sbt.io.CopyOptions]] for docs on the options available. |
|
*/ |
|
def copyFile(sourceFile: File, targetFile: File, options: CopyOptions): Unit = |
|
copyFile(sourceFile, targetFile, options.preserveLastModified, options.preserveExecutable) |
The method is documented as "overwriting any existing content" but accepts a
CopyOptions().withOverwrite(false)and then overwrites the fileio/io/src/main/scala/sbt/io/IO.scala
Lines 888 to 894 in 6121f5e