MCPcopy Create free account
hub / github.com/53AI/53AIHub / normalizeSandboxWorkspacePath

Function normalizeSandboxWorkspacePath

api/service/tools/executor.go:799–808  ·  view source on GitHub ↗
(fileName string)

Source from the content-addressed store, hash-verified

797}
798
799func normalizeSandboxWorkspacePath(fileName string) (string, error) {
800 normalized, err := normalizeSandboxRelativePath(fileName)
801 if err != nil {
802 return "", err
803 }
804 if normalized == "" || normalized == "." {
805 return "", fmt.Errorf("missing path argument")
806 }
807 return normalized, nil
808}
809
810func normalizeSandboxInputPath(fileName string) (string, error) {
811 normalized, err := normalizeSandboxWorkspacePath(fileName)

Callers 5

executeReadFileFunction · 0.85
executeEditFileFunction · 0.85

Calls 2

ErrorfMethod · 0.80

Tested by

no test coverage detected