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

Function readFile

MCSL2Lib/utils.py:243–250  ·  view source on GitHub ↗
(file: str)

Source from the content-addressed store, hash-verified

241
242
243def readFile(file: str) -> str:
244 f = QFile(file)
245 if not f.exists():
246 return ""
247 f.open(QFile.ReadOnly)
248 content = f.readAll()
249 f.close()
250 return bytes(content).decode("utf-8")
251
252
253def readBytesFile(file: str):

Callers 15

loadMethod · 0.90
getInfoMethod · 0.90
createConfigEditorMethod · 0.90
saveConfigMethod · 0.90
runMethod · 0.90
runMethod · 0.90
addNewServerRollbackMethod · 0.90
loadTasksMethod · 0.90
importConfigMethod · 0.90
deleteServer_Step1Method · 0.90
saveEditedServerMethod · 0.90
addNewServerRollbackMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected