Re: How to detect that a directory is a package file
Re: How to detect that a directory is a package file
- Subject: Re: How to detect that a directory is a package file
- From: Doug Knowles <email@hidden>
- Date: Sun, 18 Dec 2005 21:33:35 -0500
ooh, NSWorkspace is the answer to a whole bunch of questions. Thanks!
On 12/18/05, Ryan Britton <email@hidden> wrote:
>
http://developer.apple.com/documentation/Cocoa/Reference/
>
ApplicationKit/ObjC_classic/Classes/NSWorkspace.html#//apple_ref/occ/
>
instm/NSWorkspace/isFilePackageAtPath:
>
>
>
On Dec 18, 2005, at 3:44 PM, Doug Knowles wrote:
>
>
> I'm playing with an application that scans the files in a directory
>
> tree.
>
>
>
> At the moment, I'm using fileExistsAtPath:isDirectory to examine the
>
> file at a particular path, but the "isDirectory" part returns YES for
>
> package files (.app, .pages, etc.).
>
>
>
> I fear that the answer to this is excruciatingly simple, but how do a
>
> know whether a directory is a folder, or one of the "opaque" file
>
> packages that the Finder, for example, knows to present as a leaf node
>
> in the directory tree? I stumbled across some documentation that the
>
> Finder does this in part by recognizing extensions, but I hope that's
>
> not true (or that there's an API where I can use the same knowledge).
>
>
>
> TIA,
>
> Doug Knowles
>
> _______________________________________________
>
> 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
>
>
_______________________________________________
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