Thanks to visit codestin.com
Credit goes to github.com

Skip to content

hashsum: add --download-if-missing flag - fixes #8996 - #9862

Open
Abhirup0 wants to merge 1 commit into
rclone:masterfrom
Abhirup0:feat/download-if-missing
Open

hashsum: add --download-if-missing flag - fixes #8996#9862
Abhirup0 wants to merge 1 commit into
rclone:masterfrom
Abhirup0:feat/download-if-missing

Conversation

@Abhirup0

@Abhirup0 Abhirup0 commented Sep 4, 2026

Copy link
Copy Markdown

What is the purpose of this change?

Adds an opt-in --download-if-missing flag to hashsum, md5sum, and sha1sum.

Previously, users had to choose between requesting hashes from the remote (which skips files if the remote does not calculate that hash) and --download (which downloads and re-hashes every file, even those where the remote already had a valid hash).

With --download-if-missing, rclone queries the remote for the hash first and only downloads the file to calculate the checksum locally if the remote returns an empty hash or hash.ErrUnsupported.

Was the change discussed in an issue or in the forum before?

Fixes #8996

Checklist

  • I have read the contribution guidelines
  • Added download-if-missing flag and documentation for hashsum, md5sum, and sha1sum
  • Added unit tests for HashSum, HashLister, and CheckSum with download-if-missing
  • All tests and linters pass locally

@Abhirup0
Abhirup0 requested review from ncw and nielash as code owners September 4, 2026 12:29
@Abhirup0
Abhirup0 force-pushed the feat/download-if-missing branch from be3a3ff to b540ca8 Compare September 5, 2026 06:18
@Abhirup0
Abhirup0 force-pushed the feat/download-if-missing branch from b540ca8 to 3843dff Compare September 6, 2026 06:56
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

Successfully merging this pull request may close these issues.

hashsum: only download missing hashes

1 participant