By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,775 Members | 1,740 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,775 IT Pros & Developers. It's quick & easy.

FTP change get path

P: 2
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
Expand|Select|Wrap|Line Numbers
  1. $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
Apr 7 '10 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 2.5K+
P: 3,503
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.


Apr 7 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.