fix(file-move): clean up emptied source folders after sidecar move#822
fix(file-move): clean up emptied source folders after sidecar move#822
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🧰 Additional context used📓 Path-based instructions (2)backend/src/**/*.java📄 CodeRabbit inference engine (AGENTS.md)
Files:
backend/src/test/**/*.java📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (2)📚 Learning: 2026-04-10T08:15:37.436ZApplied to files:
📚 Learning: 2026-04-14T12:43:08.698ZApplied to files:
🔇 Additional comments (3)
📝 WalkthroughWalkthroughThe PR reorders operations in FileMoveService so that empty parent directory cleanup executes after sidecar metadata files are moved, rather than before. Test assertions are updated to verify this new operation sequence across multiple move scenarios. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related issues
Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
This fixes an organize file bug where empty source folders could be left behind after a move. The cleanup step ran before sidecar files were moved, so the source directory still technically had content in it during cleanup, and was left behind once sidecars were relocated.
Linked Issue: #821
Changes
Summary by CodeRabbit
Bug Fixes
Tests