mirror of
https://github.com/BigfootACA/arch-image-builder.git
synced 2024-11-23 16:43:25 +08:00
builder: build: filesystem.py: ignore errors for existing directories
This commit is contained in:
parent
4b6d3c4094
commit
d271a19b07
@ -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