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