开发者_如何转开发Is there a way to upload a file with ftp4j in append mode? I can't find any reference to that in the documentation or on google. Thank you!
Starting from frp4j 1.6 you can use the append() method:
- append(File)
- append(File, FTPDataTransferListener)
- append(String, InputStream, long, FTPDataTransferListener)
See: http://www.sauronsoftware.it/projects/ftp4j/api/it/sauronsoftware/ftp4j/FTPClient.html#append%28java.io.File%29
The FTPClient.upload(File file, long RestartAt) method can restart an upload. The parameter restartAt
specifies the restart point (number of bytes already uploaded). Use isResumeSupported() to check if the server supports resuming of broken data transfers.
精彩评论