Skip to main content

local_file_source

Function local_file_source 

Source
async fn local_file_source(
    state: &AppState,
    block_id: Option<&str>,
    raw_path: &str,
) -> Result<(PathBuf, Option<File>), Response>
Expand description

The file a request names. A container agent’s message may name any path: in the agent’s own pane it is found in the agent’s own folders and opened from there without following a link (agent_media_files), and what is served is that open file. Any other pane (or none) reads the path as asked, within the pane’s files:root when it has one.