Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.2k views
in Java FTP by (220 points)
I need to validate a transfer's success. Since the
put()
methods don't return anything, and the
validateTransfer()
method is not recommended for general use, how would I go about doing that?

I've been trying
FTPReply.getLastValidReply().toString()
to no avail.

thanks in advance for any ideas that you might have.

1 Answer

0 votes
by (162k points)
Do nothing. If it fails, an IOException or an FTPException will be thrown. Otherwise it succeeded.

Categories

...