MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / resolveRoleDir

Function resolveRoleDir

agent/app/service/agents_agents.go:495–503  ·  view source on GitHub ↗
(installDir, workspace string)

Source from the content-addressed store, hash-verified

493}
494
495func resolveRoleDir(installDir, workspace string) string {
496 if workspace == "" {
497 return ""
498 }
499 if strings.HasPrefix(workspace, "/home/node/.openclaw/workspace/") {
500 return strings.ReplaceAll(workspace, "/home/node/.openclaw", installDir)
501 }
502 return strings.ReplaceAll(workspace, "/home/node/.openclaw", path.Join(installDir, "conf"))
503}
504
505func resolveMarkdownWorkspaceDir(installDir, workspace string) (string, error) {
506 if workspace == "" {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected