source/factory.js
function putFileContents(remoteFilename, data, options) {
            const putOptions = merge(baseOptions, options || {});
            return putFile.putFileContents(remoteFilename, data, putOptions);
        }
function putFileContents(remoteFilename, data, options) {
            const putOptions = merge(baseOptions, options || {});
            return putFile.putFileContents(remoteFilename, data, putOptions);
        }
function putFileContents ( remoteFilename , data , options ) { const putOptions = merge ( baseOptions , options || { } ) ; return putFile . putFileContents ( remoteFilename , data , putOptions ) ; }
Write contents to a remote file path
@param {String} remoteFilename The path of the remote file
@param {String|Buffer} data The data to write
@param {PutOptions=} options The options for the request
@returns {Promise} A promise that resolves once the contents have been written
@memberof ClientInterface
@example
await client.putFileContents("/dir/image.png", myImageBuffer);
// Put contents without overwriting:
await client.putFileContents("/dir/image.png", myImageBuffer, { overwrite: false });
Write contents to a remote file path