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.
class documentation
Define the contract for a directory on a storage disk.
A directory object encapsulates its canonical path and delegates every operation to the driver of the disk it belongs to. Listing methods always return domain objects — never plain strings.
| Async Method | all |
List every directory contained in the directory tree. |
| Async Method | all |
List every file contained in the directory tree. |
| Async Method | create |
Create the directory, including any missing parents. |
| Async Method | delete |
Recursively delete the directory and its contents. |
| Async Method | directories |
List the directories directly contained in the directory. |
| Async Method | exists |
Check whether the directory exists on its disk. |
| Async Method | files |
List the files directly contained in the directory. |
| Method | path |
Return the canonical root-relative path of the directory. |
| Class Variable | __slots__ |
Undocumented |
overridden in
orionis.storage.DirectoryList every directory contained in the directory tree.
| Returns | |
list[IDirectory] | Directory objects for all nested directories, sorted by path. |
overridden in
orionis.storage.DirectoryCreate the directory, including any missing parents.
| Returns | |
IDirectory | The directory itself, enabling fluent chaining. |
overridden in
orionis.storage.DirectoryRecursively delete the directory and its contents.
| Returns | |
bool | True if the directory existed and was removed. |
overridden in
orionis.storage.DirectoryList the directories directly contained in the directory.
| Returns | |
list[IDirectory] | Directory objects for every direct child directory, sorted by path. |
overridden in
orionis.storage.DirectoryCheck whether the directory exists on its disk.
| Returns | |
bool | True if the directory exists. |
overridden in
orionis.storage.DirectoryReturn the canonical root-relative path of the directory.
| Returns | |
str | Normalized path relative to the disk root. The empty string denotes the disk root itself. |