-
Notifications
You must be signed in to change notification settings - Fork 86
Fix issue #2510 and preserve empty directories during move #2516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe pull request tightens directory-move validation (only checking subdirectory relation when the source is a directory) and rewrites the rsync-based move into a two-step, heredoc-driven bash flow that copies empty directories first, then performs a safe rsync/rename with extensive variable escaping. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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 |
🔧 PR Test Plugin AvailableA test plugin has been generated for this PR that includes the modified files. Version: 📥 Installation Instructions:Install via Unraid Web UI:
Alternative: Direct Download
|
- Fix false error 'Cannot move directory into its own subdirectory' when moving files (not directories) to subdirectories - Preserve empty directories during rsync rename operations (rsync --backup deletes empty dirs, so copy them first with find+rsync)
|
@limetech
|
SimonFair
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved


Fix false error 'Cannot move directory into its own subdirectory' when moving files (not directories) to subdirectories
Fixed additional bug: Preserve empty directories during rsync rename operations (rsync --backup deletes empty dirs, so copy them first with find+rsync)
Fixes #2510
Summary by CodeRabbit
Bug Fixes
Refactor
✏️ Tip: You can customize this high-level summary in your review settings.