From e36df223239c046a1b0636549da48d7e20e529fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20M=C3=BCller?= Date: Thu, 28 Oct 2021 13:39:27 +0200 Subject: [PATCH] [postcfg] we should also check for folders --- src/modules/postcfg/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/postcfg/main.py b/src/modules/postcfg/main.py index 8f5f3396d..e326ca8aa 100644 --- a/src/modules/postcfg/main.py +++ b/src/modules/postcfg/main.py @@ -56,7 +56,11 @@ class ConfigController: for filename in files: path = os.path.join(root, filename) if os.path.islink(path): - os.unlink(path) + os.unlink(path) + for folder in dirs: + path = os.path.join(root, folder) + if os.path.islink(path): + os.unlink(path) def copy_file(self, file): if exists("/" + file):