MCPcopy
hub / github.com/pyload/pyload / slotAddContainer

Method slotAddContainer

pyLoadGui.py:484–494  ·  view source on GitHub ↗

emitted from main window add container

(self, path)

Source from the content-addressed store, hash-verified

482 pass
483
484 def slotAddContainer(self, path):
485 """
486 emitted from main window
487 add container
488 """
489 filename = basename(path)
490 #type = "".join(filename.split(".")[-1])
491 fh = open(path, "r")
492 content = fh.read()
493 fh.close()
494 self.connector.uploadContainer(filename, content)
495
496 def slotSaveMainWindow(self, state, geo):
497 """

Callers

nothing calls this directly

Calls 3

readMethod · 0.45
closeMethod · 0.45
uploadContainerMethod · 0.45

Tested by

no test coverage detected