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: Strange file copy problem [Solved]



As another quick warning, in addition to the -1 -2 -3 or whatever being added if you mount an SMB volume the path is actually:
 /Volumes/<IP ADDRESS OF SERVER>/

So if you have 2 volumes on 10.10.1.15 the first one mounted will be /Volumes/10.10.1.15 and the second mounted will be /Volumes/10.10.1.15-1

However if you mount an AFP volume the volume name will be the mount point so the path would be:
/Volumes/<Volume_Name>

If you want to be full proof you can dip into Carbon and use PBGetVolMountInfo.  If you have the IP Address and volume name (hopefully in your SQL database) you can use the information from this to determine if you are connect to the correct server and volume.

Have fun!
Kris
-------------- Original message -------------- 
From: John Stiles <email@hidden> 

> A word to the wise--you cannot be sure that "/Volumes//name of the 
> volume//" actually is the mount point for your volume. 
> Frequently, if the user has unmounted and remounted volumes, it will be 
> "/Volumes//name of the volume/-1/" or a similar variant. 
> The Carbon File Manager can iterate volumes and return the user-visible 
> name for each volume. There may be an easier solution than this as well, 
> but I can't think of one at the moment :) 
> 
> email@hidden wrote: 
> > This falls under the "Doh!" category. I wasn't prepending "/volumes/" to the 
> path name. Once I did that, it worked fine. 
> > 
> > Ken 
> > _______________________________________________ 
> > Do not post admin requests to the list. They will be ignored. 
> > Cocoa-dev mailing list (email@hidden) 
> > Help/Unsubscribe/Update your Subscription: 
> > http://lists.apple.com/mailman/options/cocoa-dev/email@hidden 
> > 
> > This email sent to email@hidden 
> > 
> _______________________________________________ 
> Do not post admin requests to the list. They will be ignored. 
> Cocoa-dev mailing list (email@hidden) 
> Help/Unsubscribe/Update your Subscription: 
> http://lists.apple.com/mailman/options/cocoa-dev/email@hidden 
> 
> This email sent to email@hidden 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to 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.