MCPcopy Index your code
hub / github.com/python/cpython / cmd_retr

Method cmd_retr

Lib/test/test_ftplib.py:245–253  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

243 self.push('350 rest ok')
244
245 def cmd_retr(self, arg):
246 self.push('125 retr ok')
247 if self.rest is not None:
248 offset = int(self.rest)
249 else:
250 offset = 0
251 self.dtp.push(self.next_retr_data[offset:])
252 self.dtp.close_when_done()
253 self.rest = None
254
255 def cmd_list(self, arg):
256 self.push('125 list ok')

Callers

nothing calls this directly

Calls 3

pushMethod · 0.95
close_when_doneMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected