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