• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Question about movePath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Question about movePath
      • From: Finlay Dobbie <email@hidden>
References: 
 >Question about movePath (From: Joe Chan <email@hidden>)

  • Prev by Date: Re: Initializing an Array
  • Next by Date: Re: Initializing an Array
  • Previous by thread: Question about movePath
  • Next by thread: Re: Question about movePath
  • Index(es):
    • Date
    • Thread