From 404cadcb8fdb0c104c5bfb1f7bcf1bb619abb904 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philip=20M=C3=BCller?= <philm@manjaro.org>
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 8f5f3396d3..e326ca8aa1 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):
-- 
GitLab