• 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: Um... How do you rename a file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Um... How do you rename a file?


  • Subject: Re: Um... How do you rename a file?
  • From: Dustin Voss <email@hidden>
  • Date: Thu, 25 Mar 2004 16:45:25 -0800

On 25 Mar, 2004, at 4:29 AM, Alastair Houghton wrote:
I take your point about the fact that you aren't really moving the file
so you don't expect to have to use a method called "move". But I'm
sure you can see that renaming a file is just a special case of the
move operation in which you don't change the directory that it's in ---
i.e. there's no need for a separate rename operation.

I can see where's he's coming from. Files have a unique id, so if you delete a file and recreate it with the same name, you'll have a different unique id. The only reason it works is because the mv command doesn't delete and recreate the file on HFS+.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Um... How do you rename a file?
      • From: Alastair Houghton <email@hidden>
References: 
 >Re: Um... How do you rename a file? (From: Ken Tozier <email@hidden>)
 >Re: Um... How do you rename a file? (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: Looking for Cocoa Example: NSView
  • Next by Date: Re: Vending a proxy problems
  • Previous by thread: Re: Um... How do you rename a file?
  • Next by thread: Re: Um... How do you rename a file?
  • Index(es):
    • Date
    • Thread