Skip to main content

Module workspace_copy

Module workspace_copy 

Source
Expand description

Copying one file out of a container agent’s workspace, read-only, to a folder of srv’s own.

The workspace is the agent’s to change while it is read, so the file is opened by walking down from the workspace folder without following a link (widget::beneath); elsewhere by checking, after the open, that it is the file the path names inside the workspace.

Functions§

copy_file
Copies file (under root) into the folder into, which is made, under its own name, read-only; at most limit bytes. Returns the copy’s path.
open_beneath
file, which lies under root (a canonical path), opened to read, without following a link on the way.