Skip to content

Commit

Permalink
copy to dir
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWang1127 committed Sep 17, 2024
1 parent b5491c5 commit 0c7e347
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions library_generation/test/integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,12 @@ def __copy_api_definition(cls, committish: str) -> str:
)
api_temp_dir = tempfile.mkdtemp()
print(f"Copying api definition to {api_temp_dir}...")
shutil.copytree(f"{repo_dest}/google", api_temp_dir, dirs_exist_ok=True)
shutil.copytree(f"{repo_dest}/grafeas", api_temp_dir, dirs_exist_ok=True)
shutil.copytree(
f"{repo_dest}/google", f"{api_temp_dir}/google", dirs_exist_ok=True
)
shutil.copytree(
f"{repo_dest}/grafeas", f"{api_temp_dir}/grafeas", dirs_exist_ok=True
)
shutil.rmtree(repo_dest)
print(f"List files and dirs in {api_temp_dir}")
print(os.listdir(api_temp_dir))
Expand Down

0 comments on commit 0c7e347

Please sign in to comment.