MCPcopy
hub / github.com/pyload/pyload / getFileData

Method getFileData

module/database/FileDatabase.py:278–283  ·  view source on GitHub ↗

returns dict with file information

(self, id)

Source from the content-addressed store, hash-verified

276
277 #----------------------------------------------------------------------
278 def getFileData(self, id):
279 """returns dict with file information"""
280 if id in self.cache:
281 return self.cache[id].toDbDict()
282
283 return self.db.getLinkData(id)
284
285 #----------------------------------------------------------------------
286 def getFile(self, id):

Callers 1

reorderFileMethod · 0.95

Calls 2

toDbDictMethod · 0.80
getLinkDataMethod · 0.80

Tested by

no test coverage detected