MCPcopy
hub / github.com/tinode/chat / toAbsolutePath

Function toAbsolutePath

server/utils.go:707–712  ·  view source on GitHub ↗

Convert relative filepath to absolute.

(base, path string)

Source from the content-addressed store, hash-verified

705
706// Convert relative filepath to absolute.
707func toAbsolutePath(base, path string) string {
708 if filepath.IsAbs(path) {
709 return path
710 }
711 return filepath.Clean(filepath.Join(base, path))
712}
713
714// Detect platform from the UserAgent string.
715func platformFromUA(ua string) string {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…