• 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: renaming files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: renaming files


  • Subject: Re: renaming files
  • From: Pelle Johansson <email@hidden>
  • Date: Sat, 26 May 2001 00:47:17 +0200

On fredag, maj 25, 2001, at 10:37 , Steve Gehrman wrote:

How do I rename a file? I can't seem to find an API do do this. I tried moving the file to the same directory with a different name, but that didn't seem to work.

Hmm, that's weird, because that's how you do it. The system call is even called rename().
I don't know what you used, but perhaps you can use that call directly instead? (notice that rename() removes the target if it already exists.)
--
Pelle Johansson
<email@hidden>


References: 
 >renaming files (From: Steve Gehrman <email@hidden>)

  • Prev by Date: Re: Utility Windows
  • Next by Date: Overriding Cocoa Classes
  • Previous by thread: renaming files
  • Next by thread: Re: Utility Windows
  • Index(es):
    • Date
    • Thread