Which connection, the control socket I assume?
We can add a method
public boolean isControlClosed()
will that do what you want?
How can I know if the connection was closed?
You can implement in FTPClient class a public method that returns a socket.
Doing this I would do:
socket.isClosed()
Thanks!
Jorge