[repl] in do_ls goes fully back when there is a / in path
This commit is contained in:
parent
a7f652fb46
commit
2e5aa369e0
1 changed files with 3 additions and 2 deletions
|
|
@ -1055,8 +1055,9 @@ class ReplApplication(Cmd, ConsoleApplication):
|
|||
self._format_obj(obj, only)
|
||||
|
||||
if path:
|
||||
# Let's go back to the parent directory
|
||||
self.working_path.restore()
|
||||
for _path in path.split('/'):
|
||||
# Let's go back to the parent directory
|
||||
self.working_path.up()
|
||||
else:
|
||||
# Save collections only if we listed the current path.
|
||||
self.collections = collections
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue