Does copyPath works for Path of VolumeName?

Discussion in 'Mac Programming' started by imranpundeer, Jun 29, 2009.

  1. macrumors newbie

    Joined:
    Jan 10, 2009
    #1
    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
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    The URL is not a path: it's a URL. You must pass a valid, Unix path.
     
  3. thread starter macrumors newbie

    Joined:
    Jan 10, 2009
    #3
    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
     
  4. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    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.
     

Share This Page