Resuming FTP downloads using inets FTP server

I have a URL ftp://host/pathand you want to download the file and resume downloading if the connection is lost in Erlang.

Starting the download is quite simple using the ftp module , but how to resume it?

+3
source share
1 answer

Yes, as Peer said .. you need to add functionality to the erlang module. I sent a fix for an FTP module that does just that: https://gist.github.com/700908

Basically, I found the recv_chunk_start / 3 API in the FTP module. It accepts the optional “Pos” parameter to resume FTP upload from this position.

. 1) FTP- RETR ( -- ) 2) erlang-R13B04.. R14B.

+2

Source: https://habr.com/ru/post/1774512/


All Articles