Nick Craig-Wood
76016d9947
huaweidrive: run the chunked upload integration tests
...
Implement SetUploadChunkSizer and SetUploadCutoffer in the tests so
fstests can exercise the resumable upload path with small chunk sizes.
2026-09-01 14:21:52 +01:00
Rohit Behera
83b143103c
huaweidrive: fix truncated files being uploaded successfully when the source ends early
...
The multipart upload copied the source into the request buffer without
checking how many bytes it had read, so a source that supplied fewer
bytes than its declared size was accepted by the server and reported as
a success with a truncated file stored.
Count the bytes actually read and fail the upload if they do not match
the declared size.
Signed-off-by: Rohit Behera <126186063+r0h1tb@users.noreply.github.com >
2026-08-24 18:10:19 +01:00
Nick Craig-Wood
0027678977
huaweidrive: simplify chunk size clamping found by "go fix -minmax"
2026-08-21 12:23:31 +01:00
Nick Craig-Wood
67728ce37d
huaweidrive: remove no-op omitempty found by "go fix -omitzero"
2026-08-21 12:23:31 +01:00
Nick Craig-Wood
53d9f7f956
build: modernize with "go fix -newexpr": use go1.26 new(expr)
...
Also inline and remove the now unneeded pointer helper functions.
2026-08-21 12:23:31 +01:00
Nick Craig-Wood
b5bea683c5
build: modernize with "go fix -minmax": use min and max builtins
2026-08-21 12:23:31 +01:00
Nick Craig-Wood
7929921ed8
build: modernize with "go fix -any": replace interface{} with any
2026-08-21 12:23:31 +01:00
caltechustc
be3bfe2d19
refactor: use slices.Contains to simplify code
...
Signed-off-by: caltechustc <caltechustc@outlook.com >
2026-05-24 19:57:31 +01:00
18899a58f3
Add Huawei Drive support
...
Add Huawei Drive backend implementation and tests
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
Co-authored-by: Nick Craig-Wood <nick@craig-wood.com >
2026-05-01 13:41:07 +01:00