Commit 2e5aa369 authored by Bezleputh's avatar Bezleputh Committed by Romain Bignon

[repl] in do_ls goes fully back when there is a / in path

parent a7f652fb
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment