From ba3c7f85fae0e046889a5579586281df83999ff8 Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Thu, 19 Nov 2020 19:37:28 +0100 Subject: [PATCH] Replace "\" in ILIAS paths as well I am not sure whether anybody really uses a backslash in their names, but I guess it can't hurt to do this for windows users. --- PFERD/ilias/crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PFERD/ilias/crawler.py b/PFERD/ilias/crawler.py index f5b1ae8..2e37e36 100644 --- a/PFERD/ilias/crawler.py +++ b/PFERD/ilias/crawler.py @@ -27,7 +27,7 @@ PRETTY = PrettyLogger(LOGGER) def _sanitize_path_name(name: str) -> str: - return name.replace("/", "-") + return name.replace("/", "-").replace("\\", "-") class IliasElementType(Enum):