• 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: rename check? And alias...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >rename check? And alias... (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: NSKeyedArchiver selector not recognized
  • Next by Date: Re: NSKeyedArchiver selector not recognized
  • Previous by thread: Re: rename check? And alias...
  • Next by thread: Opening and Closing a file in Invisible mode
  • Index(es):
    • Date
    • Thread