Skip to content

Commit

Permalink
Merge branch 'main' of github.com:josehu07/summerset-private into min…
Browse files Browse the repository at this point in the history
…or-publish
  • Loading branch information
josehu07 committed Jul 16, 2024
2 parents 0554dfc + 898f3e7 commit 49aef7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion publish/public_repo_trim.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ def num_leading_spaces(line):


def remove_path(path):
if os.path.exists(path):
if os.path.isdir(path):
shutil.rmtree(path)
print(f" RM {path}/")
elif os.path.isfile(path):
os.unlink(path)
print(f" RM {path}")
else:
print(f" RM {path} NOT FOUND!")
Expand Down

0 comments on commit 49aef7e

Please sign in to comment.