()
| 1355 | } |
| 1356 | |
| 1357 | func GetLastDirectory() (string, error) { |
| 1358 | // Get the current working directory |
| 1359 | dir, err := os.Getwd() |
| 1360 | if err != nil { |
| 1361 | return "", err |
| 1362 | } |
| 1363 | |
| 1364 | // Extract the base (last directory) |
| 1365 | lastDir := filepath.Base(dir) |
| 1366 | return lastDir, nil |
| 1367 | } |
| 1368 | |
| 1369 | func IsFileEmpty(filePath string) (bool, error) { |
| 1370 | fileInfo, err := os.Stat(filePath) |
no outgoing calls
no test coverage detected