Re: Strange file copy problem [Solved]
Re: Strange file copy problem [Solved]
- Subject: Re: Strange file copy problem [Solved]
- From: email@hidden (Kris Rambish)
- Date: Mon, 03 Jul 2006 20:38:09 +0000
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:
> >
> > 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:
>
> 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:
This email sent to email@hidden