code: func isExistingDirectory(point *copyEndpoint) (bool, error) {
  	destStat, err := point.driver.Stat(point.path)
  	switch {
  	case os.IsNotExist(err):
  		return false, nil
  	case err != nil:
  		return false, err
  	}
  	return destStat.IsDir(), nil
  }
docs: // isExistingDirectory returns true if the path exists and is a directory