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




Le 28 mai 08 à 11:50, Uli Kusterer a écrit :

Am 28.05.2008 um 11:15 schrieb Olivier Tristan:
Still the dev and net(i'm on leopard) folder are showing up.
Any idea what could be missing ?


Are any of these symlinks? I vaguely remember having issues with symlinks, I think some API calls resolve them automatically, and I had to go back and see if the actual link was marked invisible, because the target file wasn't.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."


Hehe, 1 bad point to you for answering without reading previous reply ;-)

Your right that FSPathMakeRef solve symlinks, but this issue was already solved as you can see in the provided sample:

FSPathMakeRefWithOptions((const UInt8*) path.toUTF8(), kFSPathMakeRefDoNotFollowLeafSymlink, &ref, 0);


No, /net and /dev are mount points (volumes).

I think you can fill a bug request, as LSCopyItemInfoForRef should be able to handle special cases for you.

For /net, calling FSGetVolumeParms() and checking the bDoNotDisplay extended flag works, but for /dev, I'm not able to create an FSRef (FSPathMakeRef("/dev", ...) returns -35), so I don't know how to handle this.

_______________________________________________
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>)
 >Re: Invisible dir in Finder but not kIsInvisible (From: "Olivier Tristan" <email@hidden>)
 >Re: Invisible dir in Finder but not kIsInvisible (From: Uli Kusterer <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.