mirror of
https://github.com/LTTLabsOSS/markbench-tests.git
synced 2026-01-09 14:07:56 -05:00
* 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
16 lines
433 B
Python
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
|