carries_inventory
carries_inventory(
directory: str | os.PathLike[str, PathLike] ,
)-> ‘bool’
Return whether a directory holds anything under the blessed name.
A few stats and nothing more: this is the question a spool asks when it opens a directory, so it must not read, parse, or judge what it finds. Which of the two forms the directory means, or whether it names a form at all, is find_inventory’s to answer, when something actually asks; whether what it names loads is the loader’s, later still, and nobody’s until then.
Parameters
| Parameter | Description |
|---|---|
| directory | The directory to look in. |