source/factory.js
function createWriteStream(remoteFilename, options) {
            const createOptions = merge(baseOptions, options || {});
            return createStream.createWriteStream(remoteFilename, createOptions);
        }
function createWriteStream(remoteFilename, options) {
            const createOptions = merge(baseOptions, options || {});
            return createStream.createWriteStream(remoteFilename, createOptions);
        }
function createWriteStream ( remoteFilename , options ) { const createOptions = merge ( baseOptions , options || { } ) ; return createStream . createWriteStream ( remoteFilename , createOptions ) ; }
Create a writeable stream to a remote file
@param {String} remoteFilename The file to write to
@param {PutOptions=} options Options for the request
@memberof ClientInterface
@returns {Writeable} A writeable stream
@example
const remote = client.createWriteStream("/data.zip");
fs.createReadStream("~/myData.zip").pipe(remote);
Create a writeable stream to a remote file