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

Method mkd

Lib/ftplib.py:629–636  ·  view source on GitHub ↗

Make a directory, return its full pathname.

(self, dirname)

Source from the content-addressed store, hash-verified

627 return int(s)
628
629 def mkd(self, dirname):
630 '''Make a directory, return its full pathname.'''
631 resp = self.voidcmd('MKD ' + dirname)
632 # fix around non-compliant implementations such as IIS shipped
633 # with Windows server 2003
634 if not resp.startswith('257'):
635 return ''
636 return parse257(resp)
637
638 def rmd(self, dirname):
639 '''Remove a directory.'''

Callers 2

test_mkdMethod · 0.80
test_encoding_paramMethod · 0.80

Calls 3

voidcmdMethod · 0.95
parse257Function · 0.85
startswithMethod · 0.45

Tested by 2

test_mkdMethod · 0.64
test_encoding_paramMethod · 0.64