mirror of
https://github.com/rclone/rclone.git
synced 2026-10-10 23:11:42 -04:00
NoCloser hides the Close method of an io.Reader but in doing so it also hid io.WriterTo if the underlying reader implemented it, forcing io.Copy to fall back to a buffered Read loop. Following io.NopCloser, return a variant which forwards WriteTo when the wrapped reader supports it.