Re: Windows _findfirst , _findnext
Re: Windows _findfirst , _findnext
- Subject: Re: Windows _findfirst , _findnext
- From: Lee Ann Rucker <email@hidden>
- Date: Wed, 05 Oct 2011 14:13:26 -0700
[[[NSFileManager defaultManager] contentsOfDirectoryAtPath:aPath error:NULL] pathsMatchingExtensions:anArrayOfExtensions]
On Oct 5, 2011, at 2:07 PM, Kyle Sluder wrote:
> On Wed, Oct 5, 2011 at 1:31 PM, koko <email@hidden> wrote:
>> Is there a best way to get thins done with NSFileManager?
>
> NSFileManager has no concept of file extension patterns like Windows
> does. If you really need to find all files that have the extension
> ".exe", then you can do a simple loop and comparison. If what you
> really want to do is find all files of a certain type, you should use
> UTIs instead.
>
> --Kyle Sluder
> _______________________________________________
>
> 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
_______________________________________________
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