Patch to allow ftp client to support REST and SIZE commands

Arun Suresh arun.suresh@REDACTED
Sun May 2 22:02:59 CEST 2010


Hi

We use erlang ftp client library (specifically the recv_chunk function of
the ftp module) to fetch large files which are generally several GBs in
size. An fetch/connection error in the middle of a fetch requires us to
start the fetch afresh.

The FTP RFC http://www.faqs.org/rfcs/rfc959.html talks about the REST
command which can be used to restart transmission from a specified point.
Also it talks about the SIZE command which returns the size of a remote
file.

Please find attached my patch proposal that adds the above functionalities
to the existing client.

Regards,
-Arun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20100503/7b550035/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ftp.patch
Type: application/octet-stream
Size: 8165 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20100503/7b550035/attachment.obj>


More information about the erlang-patches mailing list