Skip to content

[Feature Request]: Prevent re-downloading of existing packages. (VSC-1742) #1623

@jnms-me

Description

@jnms-me

When downloading large packages, should the connection drop for whatever reason, the entire download is restarted. Even when presented with e.g. a complete esp-idf-v5.4.2.zip in the expected location, the entire file contents will be removed and re-downloaded.

HTTP downloads support range requests https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Range_requests. As implemented by wget -c, for example. This should be used to continue partially-downloaded files.

Github also exposes sha256 hashes of release artifacts. These can be used to finally verify the downloaded files before using them.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions