rclone/fs
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
..
accounting accounting: fix data race in Transferred() 2020-11-26 22:54:38 +00:00
asyncreader fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
cache test: Add context to mockfs.NewFs #3257 #4685 2020-11-09 18:05:54 +00:00
chunkedreader Spelling fixes 2020-10-14 15:21:31 +01:00
config log: fix enabling systemd logging when using --log-file 2020-12-17 11:55:27 +00:00
dirtree build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
driveletter Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
filter filter: deglobalise to put filter config into the context #4685 2020-11-27 17:28:42 +00:00
fserrors vfs: support synchronous cache space recovery upon ENOSPC 2020-08-25 21:12:06 +01:00
fshttp fshttp: prevent overlap of HTTP headers in logs 2020-12-27 12:44:46 +00:00
fspath fs: Fix parsing of .. when joining remotes - Fixes #4862 2020-12-18 13:06:39 +00:00
hash hash: add MultiHasher.Sum() to retrieve a single specific hash 2020-11-13 02:31:59 +01:00
list filter: deglobalise to put filter config into the context #4685 2020-11-27 17:28:42 +00:00
log log: fix enabling systemd logging when using --log-file 2020-12-17 11:55:27 +00:00
march fs: support multi-threads to head dst object 2020-12-02 16:26:37 +00:00
object Remove backend dependency from fs/hash 2019-10-01 16:29:58 +01:00
operations 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
rc plugins: Create plugins files only if webui is enabled. Fixes #4592. May fix #4600. 2020-12-27 15:05:41 +00:00
sync filter: deglobalise to put filter config into the context #4685 2020-11-27 17:28:42 +00:00
walk filter: deglobalise to put filter config into the context #4685 2020-11-27 17:28:42 +00:00
bwtimetable.go Spelling fixes 2020-10-14 15:21:31 +01:00
bwtimetable_test.go fs: added weekday schedule into --bwlimit - fixes #1822 2018-06-17 18:38:09 +01:00
config.go log: fix enabling systemd logging when using --log-file 2020-12-17 11:55:27 +00:00
config_list.go Make flags show up with their proper names, eg SizeSuffix rather than int 2019-02-07 11:57:26 +00:00
config_list_test.go fs: fix tests for *SepList 2018-08-21 10:58:59 +01:00
config_test.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
cutoffmode.go fs: Use --cutoff-mode hard,soft,catious instead of 3 --max-transfer-mode flags 2020-03-01 09:49:55 +00:00
cutoffmode_test.go fs: Use --cutoff-mode hard,soft,catious instead of 3 --max-transfer-mode flags 2020-03-01 09:49:55 +00:00
deletemode.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
dir.go Add context propagation to rclone 2019-06-19 11:59:46 +01:00
direntries.go fs: Allow sync of a file and a directory with the same name 2019-06-09 15:57:05 +01:00
direntries_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
dump.go Make flags show up with their proper names, eg SizeSuffix rather than int 2019-02-07 11:57:26 +00:00
dump_test.go Fix broken flag type tests 2019-02-07 16:42:26 +00:00
fingerprint.go fs: add Fingerprint to detect changes in an object 2020-06-30 12:01:36 +01:00
fingerprint_test.go test: Add context to mockfs.NewFs #3257 #4685 2020-11-09 18:05:54 +00:00
fs.go dropbox: test file name length before upload to fix upload loop 2020-12-01 17:56:36 +00:00
fs_test.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
log.go log: fix enabling systemd logging when using --log-file 2020-12-17 11:55:27 +00:00
log_test.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
mimetype.go Add context propagation to rclone 2019-06-19 11:59:46 +01:00
options.go docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
options_test.go fs: fix FixRangeOption so it doesn't add HTTPOptions in place of bad Ranges 2020-04-24 12:32:09 +01:00
parseduration.go fs: allow --min-age/--max-age to take a date as well as a duration 2020-05-12 17:49:33 +01:00
parseduration_test.go fs: parseduration: fixed tests to use UTC time 2020-11-23 17:11:56 +00:00
sizesuffix.go fix spelling 2019-04-30 14:12:18 +02:00
sizesuffix_test.go fs: Implement Scan method for SizeSuffix and Duration 2018-07-16 08:50:52 +01:00
version.go Start v1.54.0-DEV development 2020-09-02 17:52:58 +01:00
versioncheck.go build: update to use go1.14 for the build 2020-02-26 21:26:47 +00:00