diff --git a/compiler-plugin/src/main/kotlin/com/google/devtools/ksp/KotlinSymbolProcessingExtension.kt b/compiler-plugin/src/main/kotlin/com/google/devtools/ksp/KotlinSymbolProcessingExtension.kt index 2c044d6752..ccc1dd57aa 100644 --- a/compiler-plugin/src/main/kotlin/com/google/devtools/ksp/KotlinSymbolProcessingExtension.kt +++ b/compiler-plugin/src/main/kotlin/com/google/devtools/ksp/KotlinSymbolProcessingExtension.kt @@ -490,7 +490,7 @@ abstract class AbstractKotlinSymbolProcessingExtension( roundDir.walkTopDown().forEach { val dst = File(options.javaOutputDir, File(it.path).toRelativeString(roundDir)) if (dst.isFile || !dst.exists()) { - copyWithTimestamp(it, dst, false) + copyWithTimestamp(it, dst, overwrite = dst.isFile) } } }