Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

imranpundeer

macrumors newbie
Original poster
Jan 10, 2009
25
0
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

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
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

macrumors newbie
Original poster
Jan 10, 2009
25
0
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

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.