MCPcopy Create free account
hub / github.com/Mrs4s/six-cli / GetFileExtension

Function GetFileExtension

models/tools.go:85–88  ·  view source on GitHub ↗
(file string)

Source from the content-addressed store, hash-verified

83}
84
85func GetFileExtension(file string) string {
86 sp := strings.Split(file, ".")
87 return sp[len(sp)-1]
88}
89
90func ShellMatch(str, p string) bool {
91 var (

Callers 1

PreviewMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected