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) |