File mode for newly created files. Defaults to 0o644.
signal?
AbortSignal
Cancels the write.
size?
number
Size of a stream source. SCP must announce the size before sending, so over SCP a stream without size is read into memory first. When set, the stream must be exactly this long, over either protocol.