rclone/fs/operations
Nick Craig-Wood 6d0063d685 operations: Make --max-transfer more accurate
Before this change we checked the transfer was out of range only
before the Read call. This means that we returned all the data to the
reader before declaring an error. This means that some backends wrote
the file even though an error was returned.

This fix checks the transfer after the Read as well, and chops the
excess characters off the read data if we are over the limit so that
we don't ever deliver all the data.

This fixes the tests introduced as part of 6f1766dd9e and #2672
on backends other than local.
2020-03-13 16:40:38 +00:00
..
dedupe.go dedupe: implement keep smallest too 2020-01-17 13:08:37 +00:00
dedupe_test.go dedupe: implement keep smallest too 2020-01-17 13:08:37 +00:00
listdirsorted_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
lsjson.go lsjson: add --no-mimetype flag, speed up lsf 2020-01-26 16:38:00 +00:00
multithread.go operations: fix setting the timestamp on Windows for multithread copy 2020-02-24 17:30:09 +00:00
multithread_test.go operations: fix multithread copy test to use the correct modify window 2020-02-25 13:30:35 +00:00
operations.go accounting: Correct exitcode on Transfer Limit Exceeded flag. Fixes #3203 2020-03-10 12:00:10 +00:00
operations_internal_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
operations_test.go operations: Make --max-transfer more accurate 2020-03-13 16:40:38 +00:00
rc.go copyurl: add --auto-filename flag for using file name from url in destination path (#3451) 2019-09-03 17:25:19 +01:00
rc_test.go copyurl: add --auto-filename flag for using file name from url in destination path (#3451) 2019-09-03 17:25:19 +01:00
reopen.go operations: make reopen code error on NoLowLevelRetry errors - fixes #3777 2019-12-06 10:54:03 +00:00
reopen_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00