You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FileCommands.duplicate(urls:) returns FileDuplicates, naming the companion copies it made.
FileCommands.move is nonisolated.
Added
MovePlan and FileCommands.move: a planned run of moves with companions, staged so that swaps, chains and renumberings are safe, across folders, creating missing destination folders, with rollback. FileCommands.renameAll(_:rollingBackOnFailure:) and renameConflicts(in:) are its same-folder case. Cancellation stops a run between groups, and a progress callback reports every 100 groups.
MoveRunLog, a JSON-lines journal of a run; MoveRunLog.recover(at:) puts an interrupted run's files back together, and a journal can be removed by URL. A group that cannot undo itself leaves the journal open for recovery.
FileCommands.copy(_:rollingBackOnFailure:log:progress:), copyConflicts(in:) and MoveOperation: copy a move plan through copyfile(3), cloning on APFS, renaming each group into place with RENAME_EXCL once it is whole.
FileSystem.removeFoldersEmptied(byMoving:within:), removeEmptyFolders(_:) and MovedFolders. A failed or refused move or copy removes the destination folders it created and left empty.
MoveSkipReason.duplicate(of:), a clearer otherVolume, and MoveRootError.
Companions: a RAW's XMP sidecar, a photo's .aae edit records (an original's taking an _O suffix), and a Live Photo's movie when both carry the same content identifier (FileCompanions, LivePhotoIdentifier) travel through rename, duplicate and trash. URL.existingCompanionURLs and FileCommands.copyCompanions(from:toCopy:). A rename that would leave a sidecar behind is refused before anything moves.
OriginalsMove, DisplayedFileContent and ReplacedFileDisposal (dispose(of:named:) is public), moved into this package.
Changed
A move plan's conflict check runs off the main actor and standardizes each URL once: a 60,000-file rename plan 3,300 to 2,283 ms, the folder plan 2,598 to 2,212 ms (Release).
The identical-file status reads "is already going there", which fits a rename, a move and a copy. Skip reasons and errors are translated into ten languages.
Fixed
Removing a Finder color held only in the legacy label no longer brings it back after a save; writing tags sets the legacy label to the first color written, or clears it.
Re-picking a file's own colors no longer reorders its tags and reads as a change.
A destination folder created by someone else during a move is used, and not counted as created.
Other
README covers Live Photo pairs and kept originals. Tests for cancelled and failed moves, test tags, comment cleanup.