code: func (o *CopyOptions) checkDestinationIsDir(dest fileSpec) error {
  	options := &exec.ExecOptions{
  		StreamOptions: exec.StreamOptions{
  			IOStreams: genericclioptions.IOStreams{
  				Out:    bytes.NewBuffer([]byte{}),
  				ErrOut: bytes.NewBuffer([]byte{}),
  			},
  
  			Namespace: dest.PodNamespace,
  			PodName:   dest.PodName,
  		},
  
  		Command:  []string{"test", "-d", dest.File},
  		Executor: &exec.DefaultRemoteExecutor{},
  	}
  
  	return o.execute(options)
  }
docs: // checkDestinationIsDir receives a destination fileSpec and
  // determines if the provided destination path exists on the
  // pod. If the destination path does not exist or is _not_ a
  // directory, an error is returned with the exit code received.