Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for DirToArchive (0.29 sec)

  1. tools/bug-report/pkg/bugreport/bugreport.go

    		outDir = outputDir
    	}
    	outPath := filepath.Join(outDir, "bug-report.tar.gz")
    
    	if !config.DryRun {
    		common.LogAndPrintf("Creating an archive at %s.\n", outPath)
    		archiveDir := archive.DirToArchive(tempDir)
    		if tempDir != "" {
    			archiveDir = tempDir
    		}
    		curTime = time.Now()
    		err := archive.Create(archiveDir, outPath)
    		fmt.Printf("Time used for creating the tar file is %v.\n", time.Since(curTime))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 20:57:29 UTC 2024
    - 20.7K bytes
    - Viewed (0)
Back to top