code: func EnsureTargetExists(source, destination string) error {
  	fileInfo, err := os.Stat(source)
  	if err != nil {
  		return errwrap.Wrap(fmt.Errorf("could not stat source location: %v", source), err)
  	}
  
  	targetPathParent, _ := filepath.Split(destination)
  	if err := os.MkdirAll(targetPathParent, common.SharedVolumePerm); err != nil {
  		return errwrap.Wrap(fmt.Errorf("could not create parent directory: %v", targetPathParent), err)
  	}
  
  	if fileInfo.IsDir() {
  		if err := os.Mkdir(destination, common.SharedVolumePerm); err != nil && !os.IsExist(err) {
  			return errwrap.Wrap(errors.New("could not create destination directory "+destination), err)
  		}
  	} else {
  		if file, err := os.OpenFile(destination, os.O_CREATE, common.SharedVolumePerm); err != nil {
  			return errwrap.Wrap(errors.New("could not create destination file"), err)
  		} else {
  			file.Close()
  		}
  	}
  	return nil
  }
docs: // EnsureTargetExists will recursively create a given mountpoint. If directories
  // are created, their permissions are initialized to common.SharedVolumePerm