Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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.


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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.