Completed

data class Completed(val path: String, val sizeBytes: Long, val sha256: String, val resumedFromBytes: Long, val alreadyPresent: Boolean) : DownloadEvent(source)

The verified file is at path.

Constructors

Link copied to clipboard
constructor(path: String, sizeBytes: Long, sha256: String, resumedFromBytes: Long, alreadyPresent: Boolean)

Properties

Link copied to clipboard

the destination already existed (and matched DownloadRequest.expectedSha256), so nothing was downloaded.

Link copied to clipboard

the final destination (DownloadRequest.destination).

Link copied to clipboard

bytes that were already in the partial file when this download started.

Link copied to clipboard

the lowercase hex SHA-256 of the file.

Link copied to clipboard

the file size in bytes.