From 2ca63776346fac69d0de70044ada35c4721c9389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Sun, 22 Oct 2023 12:49:34 +0200 Subject: [PATCH] refac: webdav files prefixing issue --- api/ovdashboard_api/core/webdav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/ovdashboard_api/core/webdav.py b/api/ovdashboard_api/core/webdav.py index 6e71eac..5679853 100644 --- a/api/ovdashboard_api/core/webdav.py +++ b/api/ovdashboard_api/core/webdav.py @@ -59,7 +59,7 @@ class WebDAV: _logger.debug(f"list_files {directory!r}") ls = await asyncify(cls._webdav_client.list)(directory) - return [f"{directory}/{path}" for path in ls if regex.search(path)] + return [path for path in ls if regex.search(path)] @classmethod @AsyncTTL(