> On Jun 27, 2017, at 4:17 PM, Rick Mann <[email protected]> wrote: > > Thanks for that, Charles! > > I wasn't sure because of the existence of the clonefile() call in > <sys/clonefile.h>, implying that operation was different from copyfile(), but > looking more closely at the sample code, I see that you can call copyfile() > with COPYFILE_CLONE, which seems like it will clone if possible and copy if > not. > > But there didn't seem to be equivalent calls in NSFileManager, hence my > question.
Apple clearly wants the clone feature to get used. :-) The ability to do a copy the old way is still there if you drop down to C, but since I can’t think of too many reasons to want to do that, it makes sense to leave it out of the high-level API. Charles _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
