From a2e012fe23e2628ff5633a0978cf2b56982be57a Mon Sep 17 00:00:00 2001 From: Arnau Date: Tue, 13 Jan 2026 15:37:24 +0100 Subject: [PATCH] [FIX] edi_storage_oca: ls whitespace filename with ftp protocol --- edi_storage_oca/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edi_storage_oca/utils.py b/edi_storage_oca/utils.py index 0b93e5da0..0b791c09b 100644 --- a/edi_storage_oca/utils.py +++ b/edi_storage_oca/utils.py @@ -48,6 +48,8 @@ def list_files(storage, relative_path="", pattern=False): if pattern: relative_path = fs.sep.join([relative_path, pattern]) return fs.glob(relative_path) + if fs.protocol == "ftp" and fs.ftp: + return fs.ftp.nlst(relative_path) return fs.ls(relative_path, detail=False)