MCPcopy Create free account
hub / github.com/MCSLTeam/MCSL2 / writeFile

Function writeFile

MCSL2Lib/utils.py:236–240  ·  view source on GitHub ↗
(file: str, content: str)

Source from the content-addressed store, hash-verified

234
235
236def writeFile(file: str, content: str):
237 f = QFile(file)
238 f.open(QFile.WriteOnly)
239 f.write(content.encode("utf-8"))
240 f.close()
241
242
243def readFile(file: str) -> str:

Callers 15

saveConfigMethod · 0.90
runMethod · 0.90
runMethod · 0.90
addNewServerRollbackMethod · 0.90
saveTasksMethod · 0.90
exportConfigMethod · 0.90
deleteServer_Step1Method · 0.90
saveEditedServerMethod · 0.90
addNewServerRollbackMethod · 0.90
acceptEulaMethod · 0.90
saveRunScriptMethod · 0.90
fileExistedMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected