At 6:18 -0500 26/1/05, Laurence Harris wrote:
Use FSGetCatalogInfoBulk to iterate a single folder and use
LSCopyItemInfoForRef() to get the extension of each file returned.
Would using LSCopyItemInfoForRef be faster or slower than determining
the extension from the:
1) the filename supplied in the file name array FSGetCatalogInfoBulk
can supply
2) getting the file name with a call to FSGetCatalogInfo
It seems to me that LSCopyItemInfoForRef may just be a high-level
function calling FSGetCatalogInfo and then converting the filename to
a CFString and removing anything but the extension. Also, would it do
anything more advanced than just taking the right most characters from
the filename up to the first period?
If you have a lot of files to plough through this kind of things may
make a difference