[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) 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