Files
markbench-tests/harness_utils/misc.py
derek-hirotsu 8dee00ec73 Audit Rocket League (#91)
* lint

* lint

* update utils
2023-11-24 17:29:23 -08:00

15 lines
427 B
Python

"""Misc utility functions"""
import logging
import os
def remove_files(paths: list[str]) -> None:
"""Removes files specified by provided list of file paths.
Does nothing for a path that does not exist.
"""
for path in paths:
try:
os.remove(path)
logging.info("Removed file: %s", path)
except FileNotFoundError:
logging.info("File already removed: %s", path)