Re: Um... How do you rename a file?
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.