MCPcopy Index your code
hub / github.com/Code-Hex/pget / getPartialFilePath

Function getPartialFilePath

util.go:17–22  ·  view source on GitHub ↗

getPartialFilePath returns the path of the partial file

(targetDir, filename string, id, procs int)

Source from the content-addressed store, hash-verified

15
16// getPartialFilePath returns the path of the partial file
17func getPartialFilePath(targetDir, filename string, id, procs int) string {
18 return filepath.Join(
19 targetDir,
20 fmt.Sprintf("%s.%d.%d", filename, procs, id),
21 )
22}
23
24// checkProgress In order to confirm the degree of progress
25func checkProgress(dirname string) (int64, error) {

Callers 3

destPathMethod · 0.85
assignTasksFunction · 0.85
bindFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected