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

This commit is contained in:
Bezleputh 2014-07-04 12:00:08 +02:00 committed by Romain Bignon
commit 2e5aa369e0

View file

@ -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