MCPcopy Create free account
hub / github.com/MG-RAST/Shock / getPath

Function getPath

shock-server/node/helper.go:105–107  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

103}
104
105func getPath(id string) string {
106 return fmt.Sprintf("%s/%s/%s/%s/%s", conf.PATH_DATA, id[0:2], id[2:4], id[4:6], id)
107}
108
109func getIndexPath(id string) string {
110 return fmt.Sprintf("%s/idx", getPath(id))

Callers 6

DeleteMethod · 0.85
PathMethod · 0.85
FilePathMethod · 0.85
getIndexPathFunction · 0.85
UpdateMethod · 0.85
SetFileFromPartsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected