MCPcopy
hub / github.com/keploy/keploy / GetCurrentBinaryPath

Function GetCurrentBinaryPath

utils/utils.go:732–745  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

730}
731
732func GetCurrentBinaryPath() (string, error) {
733 executable, err := os.Executable()
734 if err != nil {
735 return "", err
736 }
737
738 // Resolve the full path (to avoid issues with symbolic links)
739 executablePath, err := filepath.EvalSymlinks(executable)
740 if err != nil {
741 return "", err
742 }
743
744 return executablePath, nil
745}
746
747func ToAbsPath(logger *zap.Logger, originalPath string) string {
748 path := originalPath

Callers 1

startNativeAgentMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected