1
mirror of https://github.com/rclone/rclone synced 2024-10-16 01:41:12 +02:00
rclone/docs/content
lostheli c8cfa43ccc Add a download flag to hashsum and related commands to force rclone to download and hash files locally
This commit modifies the operations.hashSum function by adding an alternate code path. This code path is triggered by passing downloadFlag = True. When activated, rclone will download files from the remote and hash them locally. downloadFlag = False preserves the existing behavior of using the remote to retrieve the hash.

This commit modifies HashLister to support the new hashSum method as well as consolidating the roles of HashLister, HashListerBase64, Md5sum, and Sha1sum.  The printing of hashes from the function defined in HashLister has been revised to work with --progress.  There are light changes to operations.syncFprintf and cmd.startProgress for this.

The unit test operations_test.TestHashSums is modified to support this change and test the download functionality.

The command functions hashsum, md5sum, sha1sum, and dbhashsum are modified to support this change.  A download flag has been added and an output-file flag has been added.  The output-file flag writes hashes to a file instead of stdout to avoid the need to redirect stdout.
2020-12-27 15:40:44 +00:00
..
commands Add a download flag to hashsum and related commands to force rclone to download and hash files locally 2020-12-27 15:40:44 +00:00
_index.md filefabric: Implement the Enterprise File Fabric backend 2020-11-25 21:11:29 +00:00
alias.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
amazonclouddrive.md docs: update rclone about docs 2020-11-27 14:08:52 +00:00
authors.md Add Laurens Janssen to contributors 2020-12-11 10:00:51 +00:00
azureblob.md docs: update rclone about docs 2020-11-27 14:08:52 +00:00
b2.md docs: update rclone about docs 2020-11-27 14:08:52 +00:00
box.md docs: update rclone about docs 2020-11-27 14:08:52 +00:00
bugs.md docs: Cleaned up and corrected bugs docs verbiage 2020-09-02 11:53:52 +01:00
cache.md docs: spelling: etc. 2020-10-28 18:16:23 +00:00
changelog.md Changelog updates from Version v1.53.3 2020-11-19 17:57:27 +00:00
chunker.md docs: spelling: etc. 2020-10-28 18:16:23 +00:00
compress.md compress: initial documentation 2020-11-13 02:31:59 +01:00
contact.md docs: remove manually set dates and use git dates instead 2020-06-01 13:07:46 +01:00
crypt.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
docs.md compress: finish docs 2020-12-02 16:30:02 +01:00
donate.md docs: remove manually set dates and use git dates instead 2020-06-01 13:07:46 +01:00
downloads.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
drive.md docs: spelling: etc. 2020-10-28 18:16:23 +00:00
dropbox.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
faq.md docs: fix typo in FAQ 2020-12-27 12:43:30 +00:00
fichier.md docs: update rclone about docs 2020-11-27 14:08:52 +00:00
filefabric.md filefabric: Implement the Enterprise File Fabric backend 2020-11-25 21:11:29 +00:00
filtering.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
flags.md docs: grammar: if, then 2020-10-28 18:16:23 +00:00
ftp.md docs: update rclone about docs 2020-11-27 14:08:52 +00:00
googlecloudstorage.md gcs: Storage class object header support - fixes #3043 2020-12-10 20:06:49 +00:00
googlephotos.md Fixed verbal tense 2020-11-29 17:32:49 +03:00
gui.md docs: remove manually set dates and use git dates instead 2020-06-01 13:07:46 +01:00
http.md docs: update rclone about docs 2020-11-27 14:08:52 +00:00
hubic.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
install.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
install.sh doc: fix typos throughout docs 2020-05-19 12:02:44 +01:00
jottacloud.md jottacloud: docs: add heading to the example section so that it does not seem to be part of the legacy setup section 2020-11-06 17:52:50 +00:00
koofr.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
licence.md docs: remove manually set dates and use git dates instead 2020-06-01 13:07:46 +01:00
local.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
mailru.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
mega.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
memory.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
onedrive.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
opendrive.md docs: update rclone about docs 2020-11-27 14:08:52 +00:00
overview.md yandex: set Features.WriteMimeType=false as Yandex ignores mime types 2020-11-29 17:22:43 +00:00
pcloud.md pcloud: only use SHA1 hashes in EU region 2020-11-25 20:46:38 +00:00
premiumizeme.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
privacy.md docs: workaround and policy for Google Drive API 2020-07-15 23:14:39 +01:00
putio.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
qingstor.md docs: update rclone about docs 2020-11-27 14:08:52 +00:00
rc.md docs: add an extra paragraph with links to rclone rc and the HTTP API 2020-12-11 10:58:59 +00:00
remote_setup.md docs: spelling: etc. 2020-10-28 18:16:23 +00:00
s3.md docs: update rclone about docs 2020-11-27 14:08:52 +00:00
seafile.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
sftp.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
sharefile.md docs: update rclone about docs 2020-11-27 14:08:52 +00:00
sugarsync.md docs: update rclone about docs 2020-11-27 14:08:52 +00:00
swift.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
tardigrade.md docs: update rclone about docs 2020-11-27 14:08:52 +00:00
union.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
webdav.md webdav: updated docs to show streaming to nextcloud is working 2020-11-27 16:57:43 +00:00
yandex.md docs: spelling: e.g. 2020-10-28 18:16:23 +00:00