diff --git a/weboob/tools/application/repl.py b/weboob/tools/application/repl.py index 9c8751ea79fa056acbfe2012320a0fec953caa86..d5e2120d0d9b378c1ab0a67fea2447f523e8086c 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