Skip to content

Commit

Permalink
Delete files in folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed Feb 21, 2024
1 parent 4a64204 commit b063497
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ test-windows:
coverage report
coverage html
subst T: /d
rmdir testmount /s /q
python scripts/rmdir.py testmount
17 changes: 17 additions & 0 deletions scripts/rmdir.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# SPDX-FileCopyrightText: 2024 Alec Delaney, for Adafruit Industries
#
# SPDX-License-Identifier: MIT

"""
Cross-platform script for deleting folders in the CI/Makefile.
Author(s): Alec Delaney
"""

# pragma: no cover

import shutil
import sys

target = sys.argv[1]
shutil.rmtree(target)

0 comments on commit b063497

Please sign in to comment.