Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Need help with moving files via FTP

by Asim (Hermit)
on Jun 23, 2006 at 14:14 UTC ( [id://557192]=note: print w/replies, xml ) Need Help??


in reply to Need help with moving files via FTP

Are you asking how to move directories within a site using FTP? If so, the FTP protocol, itself, is not really designed to do that. You are much, much better off finding a way to shell onto that system, and using it's native copy comamnds.

Otherwise, if you're stuck with FTP, 2 ideas come to mind:

  1. See if the quot comamnd in Net::FTP allows you to do something like $ftp->quot('cp -R /home/dir1/* /home/dir2');, or
  2. Simply get the files to your local system, and then put them into the new directory on the remove system.
Hopefully, some of this helps. It's hard to aid more without more on your situation, marto's comments and links to how to do a write-up are well worth the reading and using. Help us help you, please. :)

----Asim, known to some as Woodrow.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://557192]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2025-01-14 07:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (38 votes). Check out past polls.