[postcfg] we should also check for folders

This commit is contained in:
Philip Müller 2021-10-28 13:39:27 +02:00
parent fe96369e1b
commit 404cadcb8f

View File

@ -57,6 +57,10 @@ class ConfigController:
path = os.path.join(root, filename) path = os.path.join(root, filename)
if os.path.islink(path): 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): def copy_file(self, file):
if exists("/" + file): if exists("/" + file):