Skip to main content

attachment_destination

Function attachment_destination 

Source
pub(crate) fn attachment_destination(
    block: &Block,
) -> Result<Option<String>, &'static str>
Expand description

Where this turn’s attachments land, or why they can’t: Ok(None) for a host agent (nothing to rehome — the host path already means something to it); Ok(Some(cwd)) for a container agent with a working folder to copy into; Err for a runtime that refuses attachments and isn’t a container (none does today; kept so a future one still refuses cleanly), or a container with no working folder yet.