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

Method sendcmd

Lib/ftplib.py:278–281  ·  view source on GitHub ↗

Send a command and return the response.

(self, cmd)

Source from the content-addressed store, hash-verified

276 return resp
277
278 def sendcmd(self, cmd):
279 '''Send a command and return the response.'''
280 self.putcmd(cmd)
281 return self.getresp()
282
283 def voidcmd(self, cmd):
284 """Send a command and expect a response beginning with '2'."""

Callers 13

makepasvMethod · 0.95
ntransfercmdMethod · 0.95
loginMethod · 0.95
retrlinesMethod · 0.95
mlsdMethod · 0.95
renameMethod · 0.95
deleteMethod · 0.95
sizeMethod · 0.95
testFunction · 0.95
ftpcpFunction · 0.80
is_client_connectedMethod · 0.80
test_with_statementMethod · 0.80

Calls 2

putcmdMethod · 0.95
getrespMethod · 0.95

Tested by 3

is_client_connectedMethod · 0.64
test_with_statementMethod · 0.64