MCPcopy Create free account
hub / github.com/keploy/keploy / GetLastDirectory

Function GetLastDirectory

utils/utils.go:1357–1367  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1355}
1356
1357func 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
1369func IsFileEmpty(filePath string) (bool, error) {
1370 fileInfo, err := os.Stat(filePath)

Callers 2

ValidateMethod · 0.92
PreProcessFlagsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected