veeso / suppaftp

a super FTP/FTPS client library for Rust with support for both passive and active mode
Apache License 2.0
121 stars 31 forks source link

[QUESTION] - Is it support download large file? #47

Closed thewon86 closed 1 year ago

thewon86 commented 1 year ago

Hi, How meny memory it takes when retr a large file(more than 4GiB)?

veeso commented 1 year ago

unless you're using retr_as_buffer which stores the buffer in memory, it really depends on your reader. So for example, if you use retr and inside of the closure you use std::io::copy it's not going to consume much memory, since it's continuously reading from the stream and directly copying the content into the destination writer.

thewon86 commented 1 year ago

Got it, thanks a lot!