Repository navigation
Conversation
Files hides Move unless the provider advertises reparenting. A directory move must retain stable identifiers and offline descendants, and a colliding destination must survive the operation. Assisted-by: Codex:gpt-6.2-astra Signed-off-by: zouxianxian <187847046+zxxwyt@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4253
In Apple Files, long-pressing a writable Nextcloud folder offered Copy but omitted Move. The file provider now advertises Move for unlocked, non-root folders when the server grants move permission. After a move succeeds, it updates the folder and its descendants in one Realm transaction. Their identifiers and offline flags are preserved. A move to an occupied path leaves the destination intact.
Verification
I also tested moving a folder in Apple Files against a live Nextcloud instance and confirmed that I could open the file inside after the move.
TripintoArchiveand openedArchive/Trip/Day-1/inside.txtin Quick Look. It displayed “Moved folder contents”.Trip-2both retained their original bytes. A separate WebDAV check returned 412 when the destination name was occupied.NCFileProviderMoveTestsin Xcode. Both test methods passed, including both destination names in the parameterized test (three executions).NCBackupExclusionTestson the same simulator produced the same warning.The local build resolved GoogleAppMeasurement 13.2.0 and GoogleAdsOnDeviceConversion 3.8.0 to satisfy Firebase 13.2.0.
🤖 AI (if applicable)
Codex helped implement the file provider and Realm changes, wrote regression tests, ran the checks above and drafted this description.