• 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: How determine if file is in Trash, given Path or Alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How determine if file is in Trash, given Path or Alias


  • Subject: Re: How determine if file is in Trash, given Path or Alias
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Wed, 27 May 2009 21:08:15 -0700

On May 27, 2009, at 8:05 PM, Jerry Krinock wrote:

How can I determine if a given file path, or a file alias (I have both), refers to an item which is in the Trash?

The obvious answer, using -[NSString hasPrefix:] on the path with NSHomeDirectory()/.Trash, doesn't look very pretty.

Check the docs for FSDetermineIfRefIsEnclosedByFolder, which uses a specific example of a trash folder.



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How determine if file is in Trash, given Path or Alias
      • From: Jerry Krinock <email@hidden>
References: 
 >How determine if file is in Trash, given Path or Alias (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Core data, bindings and multiple view NIB
  • Next by Date: Creating, Constructing and Managing Dynamic (Sub)Views
  • Previous by thread: Re: How determine if file is in Trash, given Path or Alias
  • Next by thread: Re: How determine if file is in Trash, given Path or Alias
  • Index(es):
    • Date
    • Thread