FTP change get path

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • csudess
    New Member
    • Apr 2010
    • 2

    #1

    FTP change get path

    I use an ftp server and when i get a file, i would like to change the directory i mean where i wanna to save the file i ve tryed this
    Code:
    $ftp->get("data.txt","data.txt","D:/work/list/data.txt")
    but it didnt work, anybody have a solution?

    Thank u afurther for ur answer
    Last edited by numberwhun; Apr 7 '10, 09:44 PM. Reason: Please use code tags!!!
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    When you post a question in the forum, its always good to make sure that you actually tell us what module or modules you are using. I am going to assume that you are using Net::FTP.

    That said, if you look at that documentation in the link (which is the cpan page for the module), you will find there is a "cwd()" function that will change the working directory.

    Also, please put code tags around any questions you ask in the forums. It is required. I have done this for you this time.

    Regards,

    Jeff

    Comment

    Working...