[postcfg] fix copytree
This commit is contained in:
parent
02736d7ccf
commit
0017df327c
@ -67,7 +67,7 @@ class ConfigController:
|
|||||||
|
|
||||||
def copy_folder(self, source, target):
|
def copy_folder(self, source, target):
|
||||||
if exists("/" + source):
|
if exists("/" + source):
|
||||||
copytree("/" + source, join(self.root, target), preserve_symlinks=1)
|
copytree("/" + source, join(self.root, target), symlinks=True, ignore_dangling_symlinks=True, dirs_exist_ok=True)
|
||||||
|
|
||||||
def remove_pkg(self, pkg, path):
|
def remove_pkg(self, pkg, path):
|
||||||
if exists(join(self.root, path)):
|
if exists(join(self.root, path)):
|
||||||
|
Loading…
Reference in New Issue
Block a user