Re: alias not resolving after a movePath
Re: alias not resolving after a movePath
- Subject: Re: alias not resolving after a movePath
- From: John Stiles <email@hidden>
- Date: Fri, 11 Nov 2005 10:40:03 -0800
On Nov 11, 2005, at 10:18 AM, Pontus Ilbring wrote:
On 11/11/05, Matt Gough <email@hidden> wrote:
My guess would be that movePath isn't preserving the nodeID of the
file in your case. If that is true then it would imply that it is
really doing a copy followed by a delete, but I find that hard to
believe.
That is the documented behaviour of movePath.
The Finder, being a Carbon application, does not use movePath -- it
probably uses FSMoveObject.
Wow, yuck. That's going to be a lot slower than just moving the file.
And as you note it breaks aliases!!
I would ditch the NSFileManager in this case and go with BSD rename:
http://developer.apple.com/documentation/Darwin/Reference/ManPages/
man2/rename.2.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden