Skip to content
Snippets Groups Projects
Commit e36df223 authored by Philip Müller's avatar Philip Müller
Browse files

[postcfg] we should also check for folders

parent 0fbdaa57
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,10 @@ class ConfigController: ...@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment