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