What's New
- Non-atomic downloads —
downloadFilenow accepts anatomicflag, mirroringuploadFile. Whenfalse, 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 atlocalso it can be resumed later.
try connection.downloadFile(
remote: "videos/large.mov",
local: destinationURL,
atomic: false
) { transferred, total, latestSpeed, averageSpeed in
true
}