commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [net] FtpClient.listFiles(String) sends REST
Date Thu, 12 Jul 2012 17:11:58 GMT
On 12 July 2012 13:29, Thomas A <thomasa88@gmail.com> wrote:
> Hi!
>
> We are using FtpClient to perform FTP uploads and downloads. When
> first calling .setRestartOffset() and then listFiles(String) on the
> FtpClient object, we have found that the restart offset is sent to the
> server, that is REST, LIST is sent. Is this correct behavior?

Does not sound right.

> From what I can gather from the javadoc, REST is only supposed to be
> sent before file transfers.
> ("... The restart command is sent to the server only before sending
> the file transfer command. ..."
> http://commons.apache.org/net/api-3.1/org/apache/commons/net/ftp/FTPClient.html#setRestartOffset(long)
>  )

Can you file a JIRA issue with sample code and output from a command listener?

e.g.

ftp.addProtocolCommandListener(new PrintCommandListener(new
PrintWriter(System.out), true));

Thanks!

> Regards,
> Thomas Axelsson
>
> ---------------------------------------------------------------------
> 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