Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does file verification work? #277

Open
mainrs opened this issue Jul 1, 2024 · 0 comments
Open

How does file verification work? #277

mainrs opened this issue Jul 1, 2024 · 0 comments

Comments

@mainrs
Copy link

mainrs commented Jul 1, 2024

Context

I am archiving my games on a NAS. I want to periodically re-download updates (if available) using lgogdownloader. I was trying to figure out how lgogdownloader checks for existing files and ensures that they are valid. I came to the following conclusions and wanted to ask if these are correct:

  1. Existing files are only checked by name and size.
  2. Downloaded files are checked once after download against the API's md5 hashsum.
  3. Partially downloaded files are downloaded in chunks of a configurable size.
  4. Resuming a download checks each chunk against its own md5 hashsum.

I am wondering where these md5 hashsums for the chunks come from, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant