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)
| 722 | //} |
| 723 | |
| 724 | func 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 | |
| 732 | func GetCurrentBinaryPath() (string, error) { |
| 733 | executable, err := os.Executable() |
no outgoing calls
no test coverage detected