(basePath string)
| 204 | } |
| 205 | |
| 206 | func checkSpaces(basePath string) { |
| 207 | dirEntries, err := os.ReadDir(basePath) |
| 208 | if err != nil { |
| 209 | spinner.Message(fmt.Sprintf("Error reading spaces directory '%s'\n", basePath)) |
| 210 | spinner.StopFail() |
| 211 | return |
| 212 | } |
| 213 | |
| 214 | for _, entry := range dirEntries { |
| 215 | if entry.IsDir() { |
| 216 | fullPath := filepath.Join(basePath, entry.Name()) |
| 217 | checkSpace(fullPath) |
| 218 | } |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | func checkSpace(spacePath string) { |
| 223 | spinner.Message("") |
no test coverage detected