INNER CODE UNIT · Python

safe_remove

Kabanosk/whisper-website · src/utils.py:4

def safe_remove(path: str):
    """Delete a file, silently ignoring errors if it's already gone.

    :param path: Path to the file to delete.
    """
    try:
        os.remove(path)
    except OSError:
        pass

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…