Files
rclone/vfs
Nick Craig-Wood 2f0657c35b vfs: add WriteFileHandle.CloseWithError to abandon streaming writes
Closing a streaming write handle sends a clean EOF to the backend
upload, so a writer which knows its data source failed part way through
had no way to stop the truncated file being stored as if it were
complete.

CloseWithError closes the handle failing the upload with the given
reason instead. EOF-like reasons are rewritten so the layers reading
the pipe can't mistake them for a clean end of stream and commit the
partial file.

Needed by serve s3 to abort interrupted PUTs - see #9718
2026-08-11 20:58:48 +01:00
..
2020-10-14 15:21:31 +01:00
2024-12-13 12:43:20 +00:00
2024-12-13 12:43:20 +00:00
2025-10-03 17:10:24 +01:00
2025-09-26 15:18:02 +01:00