async copy(src, dest, { direction, ...options } = {}) {
    deprecateV5(
      '"copy" method is deprecated, please use "copyToRemote", "copyFromRemote", "scpCopyToRemote" or "scpCopyFromRemote".',
    )
    if (direction === 'remoteToLocal')
      return this.autoCopyFromRemote(src, dest, options)

    return this.autoCopyToRemote(src, dest, options)
  }
Run a copy command using either rsync or scp.
All exec options are also available.

@see https://nodejs.org/dist/latest-v8.x/docs/api/child_process.html#child_process_child_process_exec_command_options_callback
@deprecated
@param {string} src Source
@param {string} dest Destination
@param {object} [options] Options
@param {boolean} [options.direction] Specify "remoteToLocal" to copy from "remote". By default it will copy from remote.
@param {string[]} [options.ignores] Specify a list of files to ignore.
@param {string[]|string} [options.rsync] Specify a set of rsync arguments.
@returns {ExecResult|MultipleExecResult}
@throws {ExecError}