Return current working directory.
(self)
| 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.''' |