MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / managedFilePath

Function managedFilePath

internal/instructions/paths.go:33–35  ·  view source on GitHub ↗

managedFilePath returns the absolute path of the managed file for name.

(name string)

Source from the content-addressed store, hash-verified

31
32// managedFilePath returns the absolute path of the managed file for name.
33func managedFilePath(name string) string {
34 return filepath.Join(managedDir(), safeName(name)+".md")
35}
36
37// isUnderManagedDir reports whether path resolves inside the managed dir.
38func isUnderManagedDir(path string) bool {

Callers 9

writeManagedFileFunction · 0.85
UpdateMethod · 0.85
DeleteMethod · 0.85
TestCRUDRoundTripFunction · 0.85
InstallMethod · 0.85
instructionForFileMethod · 0.85
UninstallMethod · 0.85
TestSymlinkInstallFunction · 0.85

Calls 2

managedDirFunction · 0.85
safeNameFunction · 0.85

Tested by 3

TestCRUDRoundTripFunction · 0.68
TestSymlinkInstallFunction · 0.68