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

Function writeFile

internal/entities/apps.go:494–499  ·  view source on GitHub ↗
(path string, data []byte, mode os.FileMode)

Source from the content-addressed store, hash-verified

492}
493
494func writeFile(path string, data []byte, mode os.FileMode) error {
495 if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
496 return err
497 }
498 return os.WriteFile(path, data, mode)
499}
500
501func sortStrings(s []string) {
502 for i := 1; i < len(s); i++ {

Callers 2

InstallInstructionFunction · 0.70
InstallToAppFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected