mirror of
https://github.com/BigfootACA/arch-image-builder.git
synced 2024-11-11 05:57:52 +08:00
builder: build: filesystem.py: ignore errors for existing directories
This commit is contained in:
parent
a7fabccdee
commit
6bf17468b1
@ -139,7 +139,7 @@ def add_file(ctx: ArchBuilderContext, file: dict):
|
||||
src = os.path.join(ctx.dir, src)
|
||||
log.debug(f"copy {src} to {real}")
|
||||
if folder:
|
||||
shutil.copytree(src, real, symlinks=follow)
|
||||
shutil.copytree(src, real, symlinks=follow, dirs_exist_ok=True)
|
||||
else:
|
||||
shutil.copyfile(src, real, follow_symlinks=follow)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user