commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Cole" <sc...@camsbycbs.com>
Subject Re: commons FTP: copy a file within the remote server
Date Wed, 16 Dec 2009 20:22:36 GMT
Not sure how widely supported it is, but you could try using the site()
method to execute a native OS command to copy the file.

----- Original Message ----- 
From: "ter" <ter055@yahoo.de>
To: <user@commons.apache.org>
Sent: Wednesday, December 16, 2009 12:23 PM
Subject: commons FTP: copy a file within the remote server


>
> Hello All,
>
> -org.apache.commons.net.ftp- (FTPClient FTPReply)
>
> I have been searching for a method to copy a file remotely within a ftp
> server with no luck.
> I can download and upload the file (which would do it), but I only need to
> copy it within the server and that is bad resources management in my view.
>
> I even found an example on how to copy a file between two ftp servers, but
> when I try that with only one didn't work. Maybe partially because in that
> example one server has to be set to passive and the other to active and
> cannot do both things if I only have one...
>
> I might oversee something? I have the feeling this should be an easy task
:)
> Any ideas welcome.
>
> Thanks!
> Ter
> -- 
> View this message in context:
http://n4.nabble.com/commons-FTP-copy-a-file-within-the-remote-server-tp965394p965394.html
> Sent from the Commons - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message