MCPcopy Index your code
hub / github.com/pyload/pyload / getFile

Method getFile

module/database/FileDatabase.py:829–834  ·  view source on GitHub ↗

return link instance from id

(self, id)

Source from the content-addressed store, hash-verified

827 #----------------------------------------------------------------------
828 @style.queue
829 def getFile(self, id):
830 """return link instance from id"""
831 self.c.execute("SELECT url, name, size, status, error, plugin, package, linkorder FROM links WHERE id=?", (str(id), ))
832 r = self.c.fetchone()
833 if not r: return None
834 return PyFile(self.manager, id, * r)
835
836
837 @style.queue

Callers

nothing calls this directly

Calls 2

PyFileClass · 0.90
executeMethod · 0.80

Tested by

no test coverage detected