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
Provide console commands support operations through clear_files.
| Function | clear |
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:pathlib.Path | Directory 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. |