Skip to content

Interface: WriteFileOptions ​

Options for ScpClient.writeFile.

Properties ​

PropertyTypeDescription
mode?numberFile mode for newly created files. Defaults to 0o644.
signal?AbortSignalCancels the write.
size?numberSize 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.

Released under the MIT License.