MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / pwd

Method pwd

tools/python-3.11.9-amd64/Lib/ftplib.py:648–655  ·  view source on GitHub ↗

Return current working directory.

(self)

Source from the content-addressed store, hash-verified

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

Callers 1

retrfileMethod · 0.80

Calls 3

voidcmdMethod · 0.95
parse257Function · 0.85
startswithMethod · 0.80

Tested by

no test coverage detected