00298 {
00299 FSRef ref;
00300 FSCatalogInfo info;
00301
00302
00303 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) )
00304 return ( OSType ) 0;
00305
00306 if ( noErr != FSGetCatalogInfo( &ref, kFSCatInfoFinderInfo, &info,
00307 NULL, NULL, NULL ) )
00308 return ( OSType ) 0;
00309
00310 return ((FInfo *)(info.finderInfo))->fdType;
00311 }