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

Method flush

MCSL2Lib/ProgramControllers/downloadController.py:584–594  ·  view source on GitHub ↗

将文件中的数据写入文件

(self)

Source from the content-addressed store, hash-verified

582 return {}
583
584 def flush(self):
585 """
586 将文件中的数据写入文件
587 """
588 self.fileExisted()
589 self.mutex.lock()
590 writeFile(
591 self.file,
592 json.dumps(self.entries, indent=4, ensure_ascii=False, sort_keys=True),
593 )
594 self.mutex.unlock()
595
596 def checkCoreEntry(self, coreName: str, originMd5: str, autoDelete=False):
597 """

Callers 5

readMethod · 0.95
addEntryMethod · 0.95
popCoreEntryMethod · 0.95
checkMethod · 0.95
GetEntriesMethod · 0.95

Calls 2

fileExistedMethod · 0.95
writeFileFunction · 0.90

Tested by

no test coverage detected