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

Method deleteFiles

module/common/APIExerciser.py:120–129  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

118
119
120 def deleteFiles(self):
121 info = self.api.getQueueData()
122 if not info: return
123
124 pack = choice(info)
125 fids = pack.links
126
127 if len(fids):
128 fids = [f.fid for f in sample(fids, randint(1, max(len(fids) / 2, 1)))]
129 self.api.deleteFiles(fids)
130
131
132 def deletePackages(self):

Callers 2

onEnterMethod · 0.45
event_delMethod · 0.45

Calls 1

getQueueDataMethod · 0.45

Tested by

no test coverage detected