Re: Question about movePath
Re: Question about movePath
- Subject: Re: Question about movePath
- From: Chris Parker <email@hidden>
- Date: Tue, 22 Jan 2002 13:13:27 -0800
Hi Joe,
On Tuesday, January 22, 2002, at 12:45 PM, Joe Chan wrote:
If I want to rename a directory, should I use movePath:toPath:handler:
of NSFileManager? Does anyone know if it simply renames it or does it
really do a deep copy of the entire directory, as indicated by the docs?
Yes, it really does a deep copy of the entire directory.
Failures leave either the pre-existing path present or the new path
present but not both.
We do make a complete copy of the source path first before attempting
any removal. This way if some failure -does- occur, you'll have
something to work with for recovery.
.chris
--
Chris Parker <email@hidden>
Cocoa Frameworks Engineer