[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)
|
self._format_obj(obj, only)
|
||||||
|
|
||||||
if path:
|
if path:
|
||||||
# Let's go back to the parent directory
|
for _path in path.split('/'):
|
||||||
self.working_path.restore()
|
# Let's go back to the parent directory
|
||||||
|
self.working_path.up()
|
||||||
else:
|
else:
|
||||||
# Save collections only if we listed the current path.
|
# Save collections only if we listed the current path.
|
||||||
self.collections = collections
|
self.collections = collections
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue