module to transfer files?

D

D. Alvarado

Hello, I'm trying to find some module that will copy a directory from
one computer to a server via FTP. That is, it will overwrite the
directory on the remote server if it already exists or create one if
it doesn't. Thanks - Dave
 
G

Gunnar Hjalmarsson

D. Alvarado said:
I'm trying to find some module that will copy a directory from one
computer to a server via FTP. That is, it will overwrite the
directory on the remote server if it already exists or create one
if it doesn't.

Which of the modules at CPAN are you considering to make use of for
that task?
 
T

Tore Aursand

Hello, I'm trying to find some module that will copy a directory from
one computer to a server via FTP. That is, it will overwrite the
directory on the remote server if it already exists or create one if it
doesn't.

Why don't you check CPAN [1] first? A search for 'FTP' in the module name
will certainly give you a lot of (interesting) hits.

Anyway. You could take a look at Net::FTP, which comes with the Perl
distribution. I haven't had the need to use it myself yet, but a quick
look at 'perldoc Net::FTP' assures me that this is a starting point.

[1] <http://www.cpan.org/>
 
G

Gregory Toomey

D. Alvarado said:
Hello, I'm trying to find some module that will copy a directory from
one computer to a server via FTP. That is, it will overwrite the
directory on the remote server if it already exists or create one if
it doesn't. Thanks - Dave

Maybe you need http://samba.anu.edu.au/rsync/

gtoomey
 
J

James Willmore

Hello, I'm trying to find some module that will copy a directory from
one computer to a server via FTP. That is, it will overwrite the
directory on the remote server if it already exists or create one if
it doesn't. Thanks - Dave

Net::FTP :)

If that doesn't fit the bill, then visit
http://search.cpan.org/
and search for ftp.

HTH

--
Jim

Copyright notice: all code written by the author in this post is
released under the GPL. http://www.gnu.org/licenses/gpl.txt
for more information.

a fortune quote ...
Weinberg's First Law: Progress is made on alternate Fridays.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,825
Members
47,371
Latest member
Brkaa

Latest Threads

Top