Skip to content
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

Don't use replaceItem if source and dest are on different filesystems. Fixes #3003 #3025

Merged
merged 1 commit into from
Sep 16, 2020

Conversation

rudedogdhc
Copy link
Contributor

@rudedogdhc rudedogdhc commented Jul 31, 2020

FileManager.replaceItem(_:withItemAt:backupItemName:options:) does not work if the source and destination are on different volumes. This fix checks that the source and dest are on the different volumes and falls back to using FileManager.copyItem(at:to:) if that is the case.

FileManager.replaceItem(_:withItemAt:backupItemName:options:) does not work if the source and destination are on the same filesystem.
Copy link
Member

@tmspzz tmspzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@feighter09
Copy link

Can confirm this fixed the issue on BuddyBuild for me (issue #3003)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants