Expand description
A container agent’s /workspace as a folder of the host.
A container agent’s machine is its container, whose /workspace is a folder of the host. A route
that takes a path from it (widgets/install) names the folder as the agent sees it, and srv maps
that to the host’s, after resolving symlinks, and refuses anything outside: a host path outside the
workspace would reach the user’s ~/.ssh or ~/.aws.
Functions§
- entry_
inside 🔒 - The entry
rawnames, itself: a link is not followed, because a rename acts on the name in its folder. The folder is resolved (links included) and must lie insideworkspace. Returns the entry on the host, and the container’s name for its folder (/workspace/...). - host_
spelling 🔒 rawas the host spells it, with nothing resolved yet:/workspace/...and a relative path lie underworkspace, and a host path stands as given.- inside 🔒
rawas a path on the host, insideworkspace./workspace/...is the container’s name for it; a relative path is relative to it; a host path is accepted if it is inside it. Symlinks are resolved first.- workspace_
of 🔒 - Where the container’s
/workspaceis on the host: the block’scmd:cwd, as the agent was started in it.