FileSystemUtils.copyRecursively no longer replaces existing files [SPR-15845] #20400
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Milestone
spring-projects-issues commentedAug 3, 2017
•
edited
Andy Wilkinson opened SPR-15845 and commented
In 4.3,
copyRecursively
would replace existing files. In 5.0, the move toFiles.copy
means that existing files are no longer overwritten and the copy fails with aFileAlreadyExistsException
.I wonder if this change was intentional (and could perhaps be mentioned in the javadoc), or if using
StandardCopyOption.REPLACE_EXISTING
would be appropriate.Affects: 5.0 RC3
Issue Links:
Referenced from: commits fabc9c2
The text was updated successfully, but these errors were encountered: