(archiveType string, absSourcePath string, absArchivePath string, archiveDest string)
| 106 | } |
| 107 | |
| 108 | func copyToArchive(archiveType string, absSourcePath string, absArchivePath string, archiveDest string) errors.Error { |
| 109 | src := fmt.Sprintf("file://%s", absSourcePath) |
| 110 | dst := fmt.Sprintf("file:%s/%s:///%s", absArchivePath, archiveType, archiveDest) |
| 111 | return errors.Convert(fs.Copy(context.Background(), src, dst)) |
| 112 | } |
| 113 | |
| 114 | func toGzip(archivePath string) errors.Error { |
| 115 | info, _ := os.Stat(archivePath) |
no test coverage detected