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

Method pwd

Lib/ftplib.py:642–649  ·  view source on GitHub ↗

Return current working directory.

(self)

Source from the content-addressed store, hash-verified

640 return self.voidcmd('RMD ' + dirname)
641
642 def pwd(self):
643 '''Return current working directory.'''
644 resp = self.voidcmd('PWD')
645 # fix around non-compliant implementations such as IIS shipped
646 # with Windows server 2003
647 if not resp.startswith('257'):
648 return ''
649 return parse257(resp)
650
651 def quit(self):
652 '''Quit, and close the connection.'''

Callers 2

test_pwdMethod · 0.80
retrfileMethod · 0.80

Calls 3

voidcmdMethod · 0.95
parse257Function · 0.85
startswithMethod · 0.45

Tested by 1

test_pwdMethod · 0.64