Fix wrong behavior when the source is a directory
TrivialFix Change-Id: Ie723fb35f15be0a500b428b2b58e6b4c5321df0c
This commit is contained in:
parent
1057dcd50a
commit
b5c2bd22a2
@ -158,7 +158,7 @@ def copy_files(data):
|
||||
LOG.info("Copying %s to %s",
|
||||
os.path.join(source_path, src), dest_path)
|
||||
|
||||
if os.path.isdir(src):
|
||||
if os.path.isdir(os.path.join(source_path, src)):
|
||||
shutil.copytree(os.path.join(source_path, src), dest_path)
|
||||
else:
|
||||
shutil.copy(os.path.join(source_path, src), dest_path)
|
||||
|
Loading…
Reference in New Issue
Block a user