MCPcopy Create free account
hub / github.com/DBCDK/morph / GetAbsPathRelativeTo

Function GetAbsPathRelativeTo

utils/files.go:12–18  ·  view source on GitHub ↗
(path string, reference string)

Source from the content-addressed store, hash-verified

10)
11
12func GetAbsPathRelativeTo(path string, reference string) string {
13 if filepath.IsAbs(path) {
14 return path
15 } else {
16 return filepath.Join(reference, path)
17 }
18}
19
20func ValidateEnvironment(dependencies ...string) {
21 missingDepencies := make([]string, 0)

Callers 3

execListSecretsAsJsonFunction · 0.92
GetSecretSizeFunction · 0.92
UploadSecretFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected