Re: rename check? And alias...
Re: rename check? And alias...
- Subject: Re: rename check? And alias...
- From: "Lawrence Sanbourne" <email@hidden>
- Date: Fri, 5 May 2006 11:24:11 -0500
On 5/4/06, Ondra Cada <email@hidden> wrote:
Hello,
sorry if this is a trivial question, but is there a good check
whether a file can be *renamed*?
Although in practice NSFileManager's isDeletableFileAtPath: seems to
work pretty well, I somewhat fear with HFS+ attributes and ACLs and
whatsnot there might perhaps be a situation when a file is deletable,
but not renameable (or vice versa)... perhaps I've looked in a bad
way, but I haven't been able to find a doc which would explicitly
cover this?
Here's the Carbon way:
http://lists.apple.com/archives/carbon-dev/2005/Sep/msg01436.html
Alternatively, if speed isn't a problem, you could try renaming it to
the same name and see if you get an error.
Larry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden