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: Ryan Britton <email@hidden>
- Date: Sun, 18 Dec 2005 15:55:58 -0800
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