Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IO.copyFile does not respect CopyOptions.overwrite #403

Open
dwickern opened this issue Jan 31, 2025 · 0 comments
Open

IO.copyFile does not respect CopyOptions.overwrite #403

dwickern opened this issue Jan 31, 2025 · 0 comments

Comments

@dwickern
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant