Change to directory popped off the top of the stack.
(self, parameter_s='')
| 510 | |
| 511 | @line_magic |
| 512 | def popd(self, parameter_s=''): |
| 513 | """Change to directory popped off the top of the stack. |
| 514 | """ |
| 515 | if not self.shell.dir_stack: |
| 516 | raise UsageError("%popd on empty stack") |
| 517 | top = self.shell.dir_stack.pop(0) |
| 518 | self.cd(top) |
| 519 | print("popd ->",top) |
| 520 | |
| 521 | @line_magic |
| 522 | def dirs(self, parameter_s=''): |
nothing calls this directly
no test coverage detected