[postcfg] we should also check for folders
This commit is contained in:
parent
0fbdaa5756
commit
e36df22323
@ -56,7 +56,11 @@ class ConfigController:
|
|||||||
for filename in files:
|
for filename in files:
|
||||||
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