MCPcopy Create free account
hub / github.com/apache/devlake / copyToArchive

Function copyToArchive

backend/core/utils/io.go:108–112  ·  view source on GitHub ↗
(archiveType string, absSourcePath string, absArchivePath string, archiveDest string)

Source from the content-addressed store, hash-verified

106}
107
108func 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
114func toGzip(archivePath string) errors.Error {
115 info, _ := os.Stat(archivePath)

Callers 2

createArchiveFunction · 0.85
copyContentsToArchiveFunction · 0.85

Calls 1

ConvertMethod · 0.45

Tested by

no test coverage detected