func (t *Temporary) CopyFile(dest, src string) error {
	input, err := os.Open(src)
	if err != nil {
		return fmt.Errorf("failed to open %s: %v", src, err)
	}
	defer loggedClose(src, input)
	return t.WriteFile(dest, input)
}
// CopyFile is equivalent to WriteFile with the contents of src.
CopyFile is equivalent to WriteFile with the contents of src.
// CopyFile is equivalent to WriteFile with the contents of src .
func (t *Temporary) CopyFile(dest, src string) error {
	input, err := os.Open(src)
	if err != nil {
		return fmt.Errorf("failed to open %s: %v", src, err)
	}
	defer loggedClose(src, input)
	return t.WriteFile(dest, input)
}
func ( t * Temporary ) CopyFile ( dest , src string ) error { input , err := os . Open ( src ) if err != nil { return fmt . Errorf ( " " , src , err ) } defer loggedClose ( src , input ) return t . WriteFile ( dest , input ) }
CopyFile is equivalent to WriteFile with the contents of src.
CopyFile is equivalent to WriteFile with the contents of src .