source/factory.js
function copyFile(remotePath, targetRemotePath, options) {
            const copyOptions = merge(baseOptions, options || {});
            return copy.copyFile(remotePath, targetRemotePath, copyOptions);
        }
function copyFile(remotePath, targetRemotePath, options) {
            const copyOptions = merge(baseOptions, options || {});
            return copy.copyFile(remotePath, targetRemotePath, copyOptions);
        }
function copyFile ( remotePath , targetRemotePath , options ) { const copyOptions = merge ( baseOptions , options || { } ) ; return copy . copyFile ( remotePath , targetRemotePath , copyOptions ) ; }
Copy a remote item to another path
@param {String} remotePath The remote item path
@param {String} targetRemotePath The path file will be copied to
@param {UserOptions=} options Options for the request
@memberof ClientInterface
@returns {Promise} A promise that resolves once the request has completed
@example
await client.copyFile("/photos/pic1.jpg", "/backup/pic1.jpg");
Copy a remote item to another path