Skip to content

Version 2.3.0

Latest

Choose a tag to compare

@RuiNelson RuiNelson released this 13 Jun 13:03

What's New

  • Non-atomic downloadsdownloadFile now accepts an atomic flag, mirroring uploadFile. When false, bytes are written directly to the destination file instead of through a temporary file, and a failed or cancelled transfer leaves the partially written file in place at local so it can be resumed later.
try connection.downloadFile(
    remote: "videos/large.mov",
    local: destinationURL,
    atomic: false
) { transferred, total, latestSpeed, averageSpeed in
    true
}