MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / WriteFile

Function WriteFile

internal/util/util.go:709–711  ·  view source on GitHub ↗
(path string, data []byte, perm os.FileMode)

Source from the content-addressed store, hash-verified

707}
708
709func WriteFile(path string, data []byte, perm os.FileMode) error {
710 return os.WriteFile(filepath.FromSlash(path), data, perm)
711}
712
713func BreakIntoParts(full string) []string {
714 result := []string{full}

Callers 15

saveAltsFunction · 0.92
SaveUserFunction · 0.92
SaveMethod · 0.92
SavePetScriptFunction · 0.92
SaveSpellScriptFunction · 0.92
writeJSONFileFunction · 0.92
SaveKeywordsFunction · 0.92
saveGameTimeFileFunction · 0.92
SaveBuffScriptFunction · 0.92
SaveRoomInstanceRawFunction · 0.92
SaveRoomScriptFunction · 0.92
SaveRoomTemplateFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected