Best way to determine if a directory is a package
Best way to determine if a directory is a package
- Subject: Best way to determine if a directory is a package
- From: Ron Aldrich <email@hidden>
- Date: Thu, 24 Jun 2010 14:24:21 -0700
Hello All,
I've been asked to add the ability to drop a folder onto my application, and scan the folder for acceptable documents.
I'd like to filter the scan such that any file which is contained within a package, or within a hidden folder is skipped.
I'll be using NSDirectoryEnumerator to enumerate the folder.
So, first - Given a file path (or URL, if needed), how do I reliably determine if the path points to a package?
And second, how do I reliably determine if the path points to a hidden item?
Ideally, I'd like to be using the same logic for both of these as Finder is using.
Thanks for your time,
Ron Aldrich
Software Architects, Inc.
_______________________________________________
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