Ejemplo n.º 1
0
func untarLocal(tar tar.Tar, destinationDir string, r io.Reader, quiet bool, logger io.Writer) error {
	glog.V(4).Infof("Extracting tar locally to %s", destinationDir)
	if quiet {
		return tar.ExtractTarStream(destinationDir, r)
	}
	return tar.ExtractTarStreamWithLogging(destinationDir, r, logger)
}
Ejemplo n.º 2
0
func untarLocal(tar tar.Tar, destinationDir string, r io.Reader) error {
	glog.V(4).Infof("Extracting tar locally to %s", destinationDir)
	return tar.ExtractTarStream(destinationDir, r)
}