Skip to content

Commit d262c9b

Browse files
committed
Make multiapi more open to transition single multi
1 parent d7c4973 commit d262c9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/multiapi_init_gen.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,10 @@ def main(input_str, default_api=None):
429429

430430
last_api_path = client_folder / last_api_version
431431

432+
# In case we are transitioning from a single api generation, clean old folders
433+
shutil.rmtree(str(client_folder / "operations"), ignore_errors=True)
434+
shutil.rmtree(str(client_folder / "models"), ignore_errors=True)
435+
432436
shutil.copy(
433437
str(client_folder / last_api_version / "_configuration.py"),
434438
str(client_folder / "_configuration.py"),

0 commit comments

Comments
 (0)