Paths service¶
consortium.server.services.paths_service
¶
PathsService()
¶
Central registry of the filesystem paths the server depends on.
Resolves and holds every well-known file and directory path relative to the
consortium project root, so that other services resolve paths through this single
service rather than recomputing them. Construction only resolves paths, it performs
no filesystem validation. Call _run_preflight_path_validations once, at server
boot, to validate that the required files exist and to auto-create any missing
expected directories, aborting server startup if a path is in an unrecoverable
status.
Attributes:
| Name | Type | Description |
|---|---|---|
consortium_root |
Path
|
The project root directory, resolved as the ancestor three levels above this service's module file. |
release_json_file |
Path
|
The release metadata JSON file under |
server_config_json_file |
Path
|
The server configuration JSON file under |
logging_config_json_file |
Path
|
The logging configuration JSON file under
|
user_accounts_json_file |
Path
|
The user accounts JSON file under |
role_permissions_json_file |
Path
|
The role permissions JSON file under |
server_logs_directory |
Path
|
The directory under |
assets_directory |
Path
|
The directory under |
artifacts_directory |
Path
|
The directory under |
payloads_directory |
Path
|
The directory under |
components_directory |
Path
|
The |
listeners_directory |
Path
|
The listeners subdirectory of the components directory. |
agents_directory |
Path
|
The agents subdirectory of the components directory. |
plugins_directory |
Path
|
The plugins subdirectory of the components directory. |
event_hooks_directory |
Path
|
The event hooks subdirectory of the components directory. |
Raises:
| Type | Description |
|---|---|
ConsortiumUserAccountsFileSystemError
|
If, when
|
ConsortiumRolePermissionsFileSystemError
|
If, when
|
ConsortiumReleaseFileSystemError
|
If, when |
ConsortiumDirectoryFileSystemError
|
If, when |