View Full Version : Does copyPath works for Path of VolumeName?
imranpundeer
Jun 30, 2009, 12:57 AM
HI Friends,
I am trying to copy a file using copyPath API of NSFileManager. The destination path is a Network path, But i want to give URL path to destination path not /Volume/Sharefoldername.
But it doesn't work for URL path(smb://10.112.42.26/Sharefoldername).
Any idea or help would be appriciated.
Regards,
Shadab
robbieduncan
Jun 30, 2009, 06:20 AM
HI Friends,
I am trying to copy a file using copyPath API of NSFileManager. The destination path is a Network path, But i want to give URL path to destination path not .
But it doesn't work for URL path().
Any idea or help would be appriciated.
Regards,
Shadab
The URL is not a path: it's a URL. You must pass a valid, Unix path.
imranpundeer
Jun 30, 2009, 07:58 AM
Hi,
Thanks for the reply.
I am using the path smb://10.112.42.26/Sharefoldername like?
Could you please suggest what is a valid Unix path in this schenario.
Thanks,
Shadab
robbieduncan
Jun 30, 2009, 08:18 AM
Hi,
Thanks for the reply.
I am using the path smb://10.112.42.26/Sharefoldername like?
Could you please suggest what is a valid Unix path in this schenario.
Thanks,
Shadab
That is not a path. There is no generic way to turn that into a Unix path. You need to know where it is mounted to. As you suggest in your first post in Mac OSX it tends to be /Volumes/<share name> but a user could manually (via the command line) mount to any path. You need to find an API (and I don't know what the correct API is) that can tell you where the share is mounted.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.