{"action":"created","issue":{"url":"https://api.github.com/repos/Carthage/Carthage/issues/713","labels_url":"https://api.github.com/repos/Carthage/Carthage/issues/713/labels{/name}","comments_url":"https://api.github.com/repos/Carthage/Carthage/issues/713/comments","events_url":"https://api.github.com/repos/Carthage/Carthage/issues/713/events","html_url":"https://github.com/Carthage/Carthage/pull/713","id":103041897,"number":713,"title":"Use NSFileManager.moveItemAtURL() instead of rename() system call","user":{"login":"ikesyo","id":909674,"avatar_url":"https://avatars.githubusercontent.com/u/909674?v=3","gravatar_id":"","url":"https://api.github.com/users/ikesyo","html_url":"https://github.com/ikesyo","followers_url":"https://api.github.com/users/ikesyo/followers","following_url":"https://api.github.com/users/ikesyo/following{/other_user}","gists_url":"https://api.github.com/users/ikesyo/gists{/gist_id}","starred_url":"https://api.github.com/users/ikesyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikesyo/subscriptions","organizations_url":"https://api.github.com/users/ikesyo/orgs","repos_url":"https://api.github.com/users/ikesyo/repos","events_url":"https://api.github.com/users/ikesyo/events{/privacy}","received_events_url":"https://api.github.com/users/ikesyo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-25T15:02:26Z","updated_at":"2015-09-04T13:10:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Carthage/Carthage/pulls/713","html_url":"https://github.com/Carthage/Carthage/pull/713","diff_url":"https://github.com/Carthage/Carthage/pull/713.diff","patch_url":"https://github.com/Carthage/Carthage/pull/713.patch"},"body":"Should fix #706 and #711.\r\n\r\nThe [manpage of `rename()`](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/rename.2.html) says:\r\n\r\n> Both old and new must be of the same type (that is, both must be either directories or non-directories) and __must reside on the same file system__.\r\n\r\nOn the other hand, the documentation of `NSFileManager.moveItemAtURL()` says:\r\n\r\n> If the source and destination of the move operation are not on the same volume, this method copies the item first and then removes it from its current location."},"comment":{"url":"https://api.github.com/repos/Carthage/Carthage/issues/comments/137731288","html_url":"https://github.com/Carthage/Carthage/pull/713#issuecomment-137731288","issue_url":"https://api.github.com/repos/Carthage/Carthage/issues/713","id":137731288,"user":{"login":"jashephe","id":936132,"avatar_url":"https://avatars.githubusercontent.com/u/936132?v=3","gravatar_id":"","url":"https://api.github.com/users/jashephe","html_url":"https://github.com/jashephe","followers_url":"https://api.github.com/users/jashephe/followers","following_url":"https://api.github.com/users/jashephe/following{/other_user}","gists_url":"https://api.github.com/users/jashephe/gists{/gist_id}","starred_url":"https://api.github.com/users/jashephe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jashephe/subscriptions","organizations_url":"https://api.github.com/users/jashephe/orgs","repos_url":"https://api.github.com/users/jashephe/repos","events_url":"https://api.github.com/users/jashephe/events{/privacy}","received_events_url":"https://api.github.com/users/jashephe/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T13:10:28Z","updated_at":"2015-09-04T13:10:28Z","body":"Hi — just wanted to check in:  is `NSFileManager.moveItemAtURL()` an acceptable fix, or is there a reason why `rename()` has to be used?"}}