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

Method ntransfercmd

Lib/ftplib.py:770–775  ·  view source on GitHub ↗
(self, cmd, rest=None)

Source from the content-addressed store, hash-verified

768 # --- Overridden FTP methods
769
770 def ntransfercmd(self, cmd, rest=None):
771 conn, size = super().ntransfercmd(cmd, rest)
772 if self._prot_p:
773 conn = self.context.wrap_socket(conn,
774 server_hostname=self.host)
775 return conn, size
776
777 def abort(self):
778 # overridden as we can't pass MSG_OOB flag to sendall()

Callers

nothing calls this directly

Calls 3

superClass · 0.85
wrap_socketMethod · 0.80
ntransfercmdMethod · 0.45

Tested by

no test coverage detected