Thanks guys for your answer.
Mixing both I have almost the right solution
so far', Ive come up with:
static bool isHiddenFile (const String& path)
{
FSRef ref;
OSStatus err = FSPathMakeRefWithOptions((const UInt8*) path.toUTF8(),
kFSPathMakeRefDoNotFollowLeafSymlink, &ref, 0);
if (err == noErr)
{
LSItemInfoRecord info;
err = LSCopyItemInfoForRef(&ref, kLSRequestBasicFlagsOnly, &info);
if (err == noErr)
{
return ((info.flags & kLSItemInfoIsInvisible) != 0);
}
}
return false;
}
Still the dev and net(i'm on leopard) folder are showing up.
Any idea what could be missing ?
Thanks,
--
Olivier Tristan
Ultimate Sound Bank
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden