MCPcopy
hub / github.com/keploy/keploy / GetAbsPath

Function GetAbsPath

utils/utils.go:724–730  ·  view source on GitHub ↗

func FetchHomeDirectory(isNewConfigPath bool) string { var configFolder = "/.keploy-config" if isNewConfigPath { configFolder = "/.keploy" } if runtime.GOOS == "windows" { home := os.Getenv("HOMEDRIVE") + os.Getenv("HOMEPATH") if home == "" { home = os.Getenv("USERPROFILE") } retur

(path string)

Source from the content-addressed store, hash-verified

722//}
723
724func GetAbsPath(path string) (string, error) {
725 absPath, err := filepath.Abs(path)
726 if err != nil {
727 return "", err
728 }
729 return absPath, nil
730}
731
732func GetCurrentBinaryPath() (string, error) {
733 executable, err := os.Executable()

Callers 3

PreProcessFlagsMethod · 0.92
ValidateFlagsMethod · 0.92
SetCoveragePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected