Re: Best way to determine if a directory is a package

2010-06-25 Thread Ken Thomases
On Jun 25, 2010, at 6:16 AM, Paul Sanders wrote: >> Hidden item names begin with a "." > > There is also a UF_HIDDEN flag in stat.st_flags. Google man stat os x for > details (you want stat(2)). The Finder respects this flag on my 10.6.3 > system. Whether it corresponds to kLSItemInfoIsVisib

Re: Best way to determine if a directory is a package

2010-06-25 Thread Paul Sanders
> Hidden item names begin with a "." There is also a UF_HIDDEN flag in stat.st_flags. Google man stat os x for details (you want stat(2)). The Finder respects this flag on my 10.6.3 system. Whether it corresponds to kLSItemInfoIsVisible in LSItemInfoRecord.LSItemInfoFlags (as recommended by

Re: Best way to determine if a directory is a package

2010-06-25 Thread ronald b. kopelman
On Jun 24, 2010 Ron Aldrich wrote: > 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? Hidden item names begin with a "." In your enumeration, c

Re: Best way to determine if a directory is a package

2010-06-24 Thread Jean-Daniel Dupas
Le 24 juin 2010 à 23:24, Ron Aldrich a écrit : > 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

Re: Best way to determine if a directory is a package

2010-06-24 Thread Kyle Sluder
On Thu, Jun 24, 2010 at 2:24 PM, Ron Aldrich wrote: > So, first - Given a file path (or URL, if needed), how do I reliably > determine if the path points to a package? -[NSWorkspace isFilePackageAtPath:] --Kyle Sluder ___ Cocoa-dev mailing list (Coco

Best way to determine if a directory is a package

2010-06-24 Thread Ron Aldrich
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 enu