()
| 119 | } |
| 120 | |
| 121 | func rootDir() string { |
| 122 | // Get the current working directory |
| 123 | cwd, err := os.Getwd() |
| 124 | if err != nil { |
| 125 | panic(err) |
| 126 | } |
| 127 | |
| 128 | // For Windows, extract the volume and add back the root |
| 129 | if runtime.GOOS == "windows" { |
| 130 | volume := filepath.VolumeName(cwd) |
| 131 | return volume + "\\" |
| 132 | } |
| 133 | |
| 134 | // For Unix-based systems, the root is always "/" |
| 135 | return "/" |
| 136 | } |
no outgoing calls
no test coverage detected