m8rge
5d6a6dd6c0
dropbox: migrate from deprecated api
...
Change UploadSessionFinishBatch usage to UploadSessionFinishBatchV2. Change in sdk was made in https://github.com/dropbox/dropbox-sdk-go-unofficial/pull/106
2022-05-30 17:24:18 +01:00
Nick Craig-Wood
e43b5ce5e5
Remove github.com/pkg/errors and replace with std library version
...
This is possible now that we no longer support go1.12 and brings
rclone into line with standard practices in the Go world.
This also removes errors.New and errors.Errorf from lib/errors and
prefers the stdlib errors package over lib/errors.
2021-11-07 11:53:30 +00:00
Rajat Goel
db6002952e
dropbox: upgrade sdk version
2021-10-16 10:55:02 +01:00
Nick Craig-Wood
9ce0df3242
dropbox: add --dropbox-batch-commit-timeout to control batch timeout
...
This also adds an Debug message log showing how long each batch took
See: #5491
2021-10-15 15:32:40 +01:00
Nick Craig-Wood
75c417ad93
dropbox: fix async batch missing the last few entries
2021-05-14 14:07:44 +01:00
Nick Craig-Wood
5ee646f264
dropbox: make batcher retry all errors so it doesn't exit early
...
See: https://forum.rclone.org/t/dropbox-too-many-requests-or-write-operations-trying-again-in-15-seconds/23316/18
2021-05-14 14:07:44 +01:00
Nick Craig-Wood
4a4aca4da7
dropbox: fix deadlock in batch Commit
2021-05-14 14:07:44 +01:00
Nick Craig-Wood
2e4b65f888
dropbox: add --dropbox-batch-mode flag to speed up uploading #5156
...
This adds 3 upload modes for dropbox off, sync and async and makes
sync the default.
This should improve uploads (especially for small files) greatly.
2021-05-14 14:07:44 +01:00