Skip to content

Commit 7943b3e

Browse files
committed
description for the get_url module describing checksum verification before file download
1 parent 965cb1f commit 7943b3e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

network/basics/get_url.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,17 @@
7878
default: null
7979
checksum:
8080
description:
81-
- 'If a checksum is passed to this parameter, the digest of the
81+
- If a checksum is passed to this parameter, the digest of the
8282
destination file will be calculated after it is downloaded to ensure
8383
its integrity and verify that the transfer completed successfully.
8484
Format: <algorithm>:<checksum>, e.g.: checksum="sha256:D98291AC[...]B6DC7B97"
8585
If you worry about portability, only the sha1 algorithm is available
8686
on all platforms and python versions. The third party hashlib
87-
library can be installed for access to additional algorithms.'
87+
library can be installed for access to additional algorithms.
88+
Additionaly, if a checksum is passed to this parameter, and the file exist under
89+
the C(dest) location, the destination_checksum would be calculated, and if
90+
checksum equals destination_checksum, the file download would be skipped
91+
(unless C(force) is true).
8892
version_added: "2.0"
8993
required: false
9094
default: null

0 commit comments

Comments
 (0)