run.clean_files()

Clean temporary files except specified types.

Usage

Source

run.clean_files(
    where,
    not_pattern="\\.(pdf|csv)$",
)

Parameters

where: str | Path

The directory to clean.

not_pattern: str = "\.(pdf|csv)$"
Regex pattern of file extensions to keep (default: r”.(pdf|csv)$“)

Returns

str
Message indicating which files were kept.