Expand description
Path rendering and configuration-relative path helpers.
Aster services commonly accept paths from static configuration while running with a fixed data
base directory. This module centralizes the string-level path joining and normalization rules
used by those services: redundant slashes are trimmed, . and safe .. components are folded,
paths configured relative to the config file are rendered back as runtime-relative paths under
the data base directory, and sqlite URLs keep their query string while resolving the embedded
filesystem path. The helpers intentionally avoid filesystem canonicalization so they work before
directories or database files exist.
Functionsยง
- join_
path - Joins two slash-separated path fragments without emitting duplicate separators.
- normalize_
path - Normalizes a path lexically without touching the filesystem.
- render_
runtime_ relative_ path - Renders a resolved path as a runtime-relative path under
base_dir. - resolve_
config_ relative_ path - Resolves a config value into the runtime path form used under
base_dir. - resolve_
config_ relative_ sqlite_ url - Resolves the filesystem path inside a sqlite URL while preserving sqlite-specific values.
- runtime_
temp_ dir - Returns the namespaced runtime temporary directory under
temp_root. - runtime_
temp_ file_ path - Returns a runtime temporary file path under the
_runtimenamespace. - task_
temp_ dir - Returns the temporary directory for a background task.
- task_
token_ temp_ dir - Returns the temporary directory for a specific task processing token.
- temp_
file_ path - Returns the path to a temporary file under
temp_dir. - upload_
assembled_ path - Returns the assembled-file temporary path for a multipart upload session.
- upload_
chunk_ path - Returns the temporary path for one uploaded chunk.
- upload_
temp_ dir - Returns the temporary directory for a multipart upload session.