MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / getKey

Function getKey

drivers/s3/util.go:84–90  ·  view source on GitHub ↗
(path string, dir bool)

Source from the content-addressed store, hash-verified

82}
83
84func getKey(path string, dir bool) string {
85 path = strings.TrimPrefix(path, "/")
86 if path != "" && dir {
87 path += "/"
88 }
89 return path
90}
91
92var defaultPlaceholderName = ".openlist"
93

Callers 8

LinkMethod · 0.70
PutMethod · 0.70
GetDirectUploadInfoMethod · 0.70
GetMethod · 0.70
listV1Method · 0.70
listV2Method · 0.70
copyFileMethod · 0.70
removeFileMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected