class type ftp_method =Anobject..end
ftp_method is a small procedure doing some taskmethod connect : (string * int) optionNone the current connection is used.method execute : Action.actionftp_client_pi is connected and
the queue of commands is empty.
onsuccess must be called when the method has been successfully
finished.
onerror must be called when an exception is caught.