From f932fac76c211566f495c82b1468fd7a12eb80f3 Mon Sep 17 00:00:00 2001 From: Philip Mueller Date: Wed, 8 May 2024 20:24:20 +0700 Subject: [PATCH] [postcfg] fix copytree --- src/modules/postcfg/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/postcfg/main.py b/src/modules/postcfg/main.py index 290f7841b..5ef84c31f 100644 --- a/src/modules/postcfg/main.py +++ b/src/modules/postcfg/main.py @@ -67,7 +67,7 @@ class ConfigController: def copy_folder(self, source, target): 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): if exists(join(self.root, path)):