1
mirror of https://github.com/rclone/rclone synced 2024-12-03 13:14:37 +01:00
rclone/cmd/lsf
Nick Craig-Wood f37af9afec lsjson: Add --hash-type parameter and use it in lsf to speed up hashing
Before this change if you specified --hash MD5 in rclone lsf it would
calculate all the hashes and just return the MD5 hash which was very
slow on the local backend.

Likewise specifying --hash on rclone lsjson was equally slow.

This change introduces the --hash-type flag (and corresponding
internal parameter) so that the hashes required can be selected in
lsjson.

This is used internally in lsf when the --hash parameter is selected
to speed up the hashing by only hashing with the one hash specified.

Fixes #4181
2020-04-29 16:09:45 +01:00
..
testfiles cmd: new command lsf 2018-01-06 14:39:31 +00:00
lsf_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
lsf.go lsjson: Add --hash-type parameter and use it in lsf to speed up hashing 2020-04-29 16:09:45 +01:00