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

Function SourceExt

pkg/utils/path.go:50–56  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

48}
49
50func SourceExt(path string) string {
51 ext := stdpath.Ext(path)
52 if len(ext) > 0 && ext[0] == '.' {
53 ext = ext[1:]
54 }
55 return ext
56}
57
58func EncodePath(path string, all ...bool) string {
59 seg := strings.Split(path, "/")

Callers 2

convert2strmObjsMethod · 0.92
ExtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected