Re: 10.6 :- Problems with mounted network volume path.
Re: 10.6 :- Problems with mounted network volume path.
- Subject: Re: 10.6 :- Problems with mounted network volume path.
- From: Kyle Sluder <email@hidden>
- Date: Wed, 16 Sep 2009 12:09:25 -0700
On Wed, Sep 16, 2009 at 6:35 AM, Shashanka L <email@hidden> wrote:
> My system has a local volume - 'Leopard'. When I mount a volume 'Leopard'
> from some other system in my network, the path it shows is '/Leopard'.
> (There is no '/Volumes' at the beginning!)
I have noticed this behavior too. It does not happen on my desktop
machine, but it does happen on my laptop.
> I am appending '/Volumes' at the beginning so that my application considers
> it as a volume. (As to match my present code implementation). And then, as
> both the volumes have the same name, I am getting problems in
> differentiating these 2 volumes.
You cannot rely on all volumes being mounted at /Volumes. The
userInfo dictionary has the correct path, just use it. Prepending
"/Volumes" is incorrect, and your other code must be fixed.
> If I check the mounted volume path in terminal, it shows the path as -
> '/Volumes/Leopard-1'.
I believe external drives still mount in /Volumes. I have seen
internal drives mount under both / and /Volumes.
> Why is this behavior change in 10.6 ?
No idea. File a bug: http://bugreport.apple.com.
> Can anybody help me ?
The first thing you need to do is stop relying on all volume mount
paths beginning with /Volumes.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden