func (t *Temporary) Copy(files []SourceFile) error {
	for _, f := range files {
		if f.Content != nil {
			if err := t.WriteFile(f.Dest, bytes.NewBuffer(f.Content)); err != nil {
				return err
			}
			continue
		}
		if err := t.CopyFile(f.Dest, f.Src); err != nil {
			return err
		}
	}
	return nil
}
// CopyFiles copies all source files in files using t.CopyFile or t.WriteFile as needed.
CopyFiles copies all source files in files using t.CopyFile or t.WriteFile as needed.
// CopyFiles copies all source files in files using t . CopyFile or t . WriteFile as needed .
func (t *Temporary) Copy(files []SourceFile) error {
	for _, f := range files {
		if f.Content != nil {
			if err := t.WriteFile(f.Dest, bytes.NewBuffer(f.Content)); err != nil {
				return err
			}
			continue
		}
		if err := t.CopyFile(f.Dest, f.Src); err != nil {
			return err
		}
	}
	return nil
}
func ( t * Temporary ) Copy ( files [ ] SourceFile ) error { for _ , f := range files { if f . Content != nil { if err := t . WriteFile ( f . Dest , bytes . NewBuffer ( f . Content ) ) ; err != nil { return err } continue } if err := t . CopyFile ( f . Dest , f . Src ) ; err != nil { return err } } return nil }
CopyFiles copies all source files in files using t.CopyFile or t.WriteFile as needed.
CopyFiles copies all source files in files using t . CopyFile or t . WriteFile as needed .