Skip to content

Conversation

@javi11
Copy link
Owner

@javi11 javi11 commented Jan 5, 2026

Summary

  • Adds explicit replace strategy when saving NZBs to persistent storage (.nzbs/ directory)
  • Before moving/copying an NZB, checks if destination file exists and removes it first
  • Ensures consistent behavior across operating systems (previously os.Rename behavior varied)

Test plan

  • Verify builds pass
  • Add an NZB to queue, verify it's saved to .nzbs/
  • Re-add the same NZB, verify it replaces the existing file without errors

🤖 Generated with Claude Code

When saving an NZB to persistent storage (.nzbs/ directory), if a file
with the same name already exists, the behavior was inconsistent across
operating systems. This adds explicit handling to remove any existing
file before moving/copying the new NZB, ensuring consistent replace
behavior.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@javi11 javi11 merged commit e9e1824 into main Jan 5, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants