mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 23:20:32 +00:00
test-network: Add dirs_exist_ok=True to cp_r()
Let's not fail if directories already exist in cp_r().
This commit is contained in:
@@ -106,7 +106,7 @@ def cp(src, dst):
|
||||
shutil.copy(src, dst)
|
||||
|
||||
def cp_r(src, dst):
|
||||
shutil.copytree(src, dst, copy_function=shutil.copy)
|
||||
shutil.copytree(src, dst, copy_function=shutil.copy, dirs_exist_ok=True)
|
||||
|
||||
def mkdir_p(path):
|
||||
os.makedirs(path, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user