MCPcopy
hub / github.com/pyload/pyload / getFile

Method getFile

module/database/FileDatabase.py:286–291  ·  view source on GitHub ↗

returns pyfile instance

(self, id)

Source from the content-addressed store, hash-verified

284
285 #----------------------------------------------------------------------
286 def getFile(self, id):
287 """returns pyfile instance"""
288 if id in self.cache:
289 return self.cache[id]
290 else:
291 return self.db.getFile(id)
292
293 #----------------------------------------------------------------------
294 @lock

Callers 8

deleteLinkMethod · 0.95
getJobMethod · 0.95
getDecryptJobMethod · 0.95
restartFileMethod · 0.95
package_finishedMethod · 0.45
verify_packageMethod · 0.45
package_check_failedMethod · 0.45
extractMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected