[postcfg] we should also check for folders

This commit is contained in:
Philip Müller 2021-10-28 13:39:27 +02:00
parent 0fbdaa5756
commit e36df22323

View File

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