MCPcopy Create free account
hub / github.com/akalin/gopar / getFilePath

Method getFilePath

par2/decoder.go:355–359  ·  view source on GitHub ↗
(info decoderInputFileInfo)

Source from the content-addressed store, hash-verified

353}
354
355func (d *Decoder) getFilePath(info decoderInputFileInfo) string {
356 // TODO: Make this configurable.
357 basePath := filepath.Dir(d.indexPath)
358 return filepath.Join(basePath, info.filename)
359}
360
361func (d *Decoder) fillFileIntegrityInfos(checksumToLocation checksumShardLocationMap, fileIntegrityInfos []fileIntegrityInfo, fileIDIndices map[fileID]int, i int, info decoderInputFileInfo) (int, int, int, error) {
362 path := d.getFilePath(info)

Callers 3

LoadFileDataMethod · 0.95
RepairMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected