MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / basename

Function basename

mob_test.go:2434–2437  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

2432}
2433
2434func basename(path string) string {
2435 split := strings.Split(strings.ReplaceAll(path, "\\", "/"), "/")
2436 return split[len(split)-1]
2437}
2438
2439func getRemoteDirectory(path string) string {
2440 return path + "/remote"

Callers 1

cloneRepositoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected