[postcfg] we should also check for folders
This commit is contained in:
parent
fe96369e1b
commit
404cadcb8f
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user