MCPcopy Index your code
hub / github.com/SignTools/SignTools / SafeJoinFilePaths

Function SafeJoinFilePaths

src/util/util.go:17–19  ·  view source on GitHub ↗
(basePath string, unsafePath ...string)

Source from the content-addressed store, hash-verified

15)
16
17func SafeJoinFilePaths(basePath string, unsafePath ...string) string {
18 return filepath.Join(basePath, filepath.Clean("/"+filepath.Join(unsafePath...)))
19}
20
21func JoinUrlsFatal(fullBaseUrl string, relativeUrl ...string) string {
22 result, err := JoinUrls(fullBaseUrl, relativeUrl...)

Callers 4

newUploadFunction · 0.92
newProfileFunction · 0.92
createAppFunction · 0.92
newAppFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected