Files
markbench-tests/harness_utils/misc.py
derek-hirotsu 59c0b7eb6d update workflow (#67)
* update workflow

* update file path

* fix action error

* fix step id

* revert test change

* test

* test

* fix newline

* run poetry install

* fix error

* install poetry

* test

* revert poetry install

* test calling pylint as module

* test calling pylint as module
2023-10-17 18:33:47 -07:00

16 lines
433 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)
#test