Patch to allow ftp client to support REST and SIZE commands

Arun Suresh <>
Sun May 2 22:02:59 CEST 2010


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 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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ftp.patch
Type: application/octet-stream
Size: 8164 bytes
Desc: not available
URL: <>

More information about the erlang-patches mailing list