problem trying to upload a folder via ftp in terminal.

Discussion in 'macOS' started by newmacuser23, Jan 5, 2011.

  1. newmacuser23 macrumors member

    Aug 18, 2010
    I have connected to my server through terminal and made my way to the administrator/videos directory where I want to upload the rared directory to so I type put directory name.rar and press enter and I get the following message

    usage: put local-file [remote-file]

    What does this mean?
  2. balamw Moderator


    Staff Member

    Aug 16, 2005
    New England
    I put code tags around what you wrote, it seems like you have a space in your name so it interprets local-name="directory" and remote-file="name.rar". (EDIT: Either that, or you are looking for the ANY key and have not substituted <directory name.rar> for the actual name of the file you created.)

    This is useful if you want to rename the file on transfer.

    Rename the file to not have spaces or escape the space (backslash, double quotes).

    Don't forget to make sure you are in binary mode!

  3. newmacuser23 thread starter macrumors member

    Aug 18, 2010
    Thanks yeah the spaces is what was causing the problem after sticking with the same filename just removing the spaces it is uploading fine now.

Share This Page