• 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
test if folder contains file based on NSURLs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

test if folder contains file based on NSURLs


  • Subject: test if folder contains file based on NSURLs
  • From: Rainer Standke <email@hidden>
  • Date: Thu, 29 Apr 2010 19:59:22 -0700

Hello,

I have a bunch of NSURLs for existing files on the system, and a smaller number of NSRURLs for their enclosing folders. I am looking to determine if a given file is within a given folder, based on their URLs.

Right now I am thinking that I'll have to create the enclosing folder's URL by removing the last component, and then compare that to the folder URL.

Is there a better way? Thanks!

Rainer_______________________________________________

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: test if folder contains file based on NSURLs
      • From: James Bucanek <email@hidden>
    • Re: test if folder contains file based on NSURLs
      • From: Howard Siegel <email@hidden>
  • Prev by Date: Re: NSTask objectalloc problem
  • Next by Date: Re: va_end() & [NSString initWithFormat:arguments:]
  • Previous by thread: Re: va_end() & [NSString initWithFormat:arguments:]
  • Next by thread: Re: test if folder contains file based on NSURLs
  • Index(es):
    • Date
    • Thread