From 072bf1bf755033dd2bd6bea50e70b0f6c50ab1f6 Mon Sep 17 00:00:00 2001 From: "vaibhav.chotalia" Date: Tue, 1 Oct 2024 16:24:34 +0530 Subject: [PATCH] EDPDEV-1971 - Fixed regex issue --- solvebio/cli/data.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/solvebio/cli/data.py b/solvebio/cli/data.py index 08b394cc..8d6302ad 100644 --- a/solvebio/cli/data.py +++ b/solvebio/cli/data.py @@ -955,7 +955,8 @@ def ls(args): def _ls(full_path, recursive=False, follow_shortcuts=False): - files = list(Object.all(glob=full_path, limit=1000)) + escaped_path = re.sub(r'([\[\](){}])', r'[\1]', full_path) + files = list(Object.all(glob=escaped_path, limit=1000)) for file_ in files: if follow_shortcuts and file_.is_shortcut: