From 2e5aa369e08173122646b40d6d119341651c72cd Mon Sep 17 00:00:00 2001 From: Bezleputh Date: Fri, 4 Jul 2014 12:00:08 +0200 Subject: [PATCH] [repl] in do_ls goes fully back when there is a / in path --- weboob/tools/application/repl.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/weboob/tools/application/repl.py b/weboob/tools/application/repl.py index 9c8751ea79..d5e2120d0d 100644 --- a/weboob/tools/application/repl.py +++ b/weboob/tools/application/repl.py @@ -1055,8 +1055,9 @@ def do_ls(self, line): 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 -- GitLab