Skip to content

Commit

Permalink
fix: delete generated subdir if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Oct 25, 2023
1 parent c09c990 commit 0c95ba6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/create-listings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@


def main():
for dirpath in ("docs/modules", "docs/subworkflows"):
shutil.rmtree(dirpath)
for dirpath in (
os.path.join("docs", "modules"),
os.path.join("docs", "subworkflows"),
):
if os.path.exists(dirpath):
shutil.rmtree(dirpath)
os.mkdir(dirpath)
write_listing_components("modules")
write_listing_components("subworkflows")
Expand Down

0 comments on commit 0c95ba6

Please sign in to comment.