From c20e6123fc04b02be93598af38942612a29e058d Mon Sep 17 00:00:00 2001 From: Bezleputh Date: Sun, 1 Jun 2014 13:39:25 +0200 Subject: [PATCH] [repl] allow to browse subfolders with ls --- weboob/tools/application/repl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weboob/tools/application/repl.py b/weboob/tools/application/repl.py index 8b2b7cea..c9007558 100644 --- a/weboob/tools/application/repl.py +++ b/weboob/tools/application/repl.py @@ -1007,10 +1007,10 @@ class ReplApplication(Cmd, ConsoleApplication): path = None only = line.strip().partition(' ')[-1] - if path: - # We have an argument, let's ch to the directory before the ls - self.working_path.cd1(path) + for _path in path.split('/'): + # We have an argument, let's ch to the directory before the ls + self.working_path.cd1(_path) objects = [] collections = []