All 10 tests pass. The implementation is complete. (#1616)

## Summary

I modified `vibe-kanban/crates/local-deployment/src/copy.rs` to prevent copy files from overwriting existing files.

**Before:** Files were only skipped if they existed with the same size. Files with different sizes would be overwritten.

**After:** Files are skipped if they exist at all, regardless of size or content. This ensures user files are never overwritten by the copy operation.
This commit is contained in:
Alex Netsch
2025-12-19 15:25:58 +00:00
committed by GitHub
parent d0bb5cdb75
commit b4fe6d63e5

View File

@@ -100,11 +100,7 @@ fn copy_single_file(
let target_file = target_root.join(relative_path);
// Skip if target exists with same size
if let Ok(target_meta) = fs::metadata(&target_file)
&& let Ok(source_meta) = fs::metadata(source_file)
&& target_meta.len() == source_meta.len()
{
if target_file.exists() {
return Ok(false);
}