ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

module documentation

Undocumented

Function clear_files Remove files with the given suffixes from a dedicated directory.
def clear_files(directory: Path, suffix: str | tuple[str, ...]) -> tuple[int, list[str]]: (source)

Remove files with the given suffixes from a dedicated directory.

Parameters
directory:PathDirectory searched recursively.
suffix:str | tuple[str, ...]File suffix or suffixes to remove, including each leading dot.
Returns
tuple[int, list[str]]Number of files removed and filesystem errors encountered.