Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invisible dir in Finder but not kIsInvisible



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

References: 
 >Invisible dir in Finder but not kIsInvisible (From: Olivier Tristan <email@hidden>)
 >Re: Invisible dir in Finder but not kIsInvisible (From: Jesper Papmehl-Dufay <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.