MCPcopy Create free account
hub / github.com/pydio/cells / FormatPath

Function FormatPath

common/utils/std/strings.go:34–50  ·  view source on GitHub ↗
(ii ...interface{})

Source from the content-addressed store, hash-verified

32}
33
34func FormatPath(ii ...interface{}) string {
35 var r string
36 for _, i := range ii {
37 switch v := i.(type) {
38 case int:
39 r += "/" + strconv.Itoa(v)
40 case string:
41 r += "/" + v
42 case []string:
43 for _, vv := range v {
44 r += FormatPath(vv)
45 }
46 }
47 }
48
49 return strings.TrimPrefix(r, "/")
50}
51
52func StringToKeys(s ...string) []string {
53 var r []string

Callers 10

ResolveFunction · 0.92
RegisterVaultKeyFunction · 0.92
getTLSServerConfigFunction · 0.92
getTLSClientConfigFunction · 0.92
GetUpdatesConfigsFunction · 0.92
GetAndWatchFunction · 0.92
testVaultFunction · 0.92
TestGetSetFunction · 0.92
sites.goFile · 0.92

Calls

no outgoing calls

Tested by 2

testVaultFunction · 0.74
TestGetSetFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…