func()

in transcodelauncher/copier.go [57:65]


func (c *Copier) DoCopyDestspec(ctx context.Context, sourceBucket string, sourceKey string, destSpec string, public bool) error {
	splitter := regexp.MustCompile("([^:]+):/*(.*)")
	parts := splitter.FindAllStringSubmatch(destSpec, -1)
	if parts == nil {
		return errors.New(fmt.Sprintf("destSpec %s is malformed", destSpec))
	}

	return c.DoCopy(ctx, sourceBucket, sourceKey, parts[0][1], parts[0][2], public)
}