Skip to main content

Module agent_folder_open

Module agent_folder_open 

Source
Expand description

A file of a container agent’s folder, opened by the person: the read-only copy, never the path.

A container agent can change its folder while a window reads it, so an Editor given a path in it reads whatever the agent puts there later, as the person. Two opens the person makes lead into such a folder: a click on a file in a Files pane confined to it (files_root.rs), and a click on a link in a message (from_link). Both get what the agent’s own pane.open gets (container_pane_snapshot.rs): a file opens as a read-only copy that goes with its pane, and a linked folder opens as a Files pane confined to it. A link that leads out of the agent’s folder, or one whose folder can’t be told from an agent’s, is refused with the reason.

Constants§

LEADS_OUT 🔒
The refusal for a link that is written inside a container agent’s folder and resolves outside it.
NOT_KNOWN 🔒
The refusal for a link whose folder can’t be told from a container agent’s.

Functions§

bind 🔒
pane.open where it leads into a container agent’s folder: cmd is turned to open the read-only copy (or the confined Files pane). The copy taken is returned, for the caller to note to the pane that opens.
called 🔒
What a file’s pane calls it: the container’s own name for it where that is known, else its path from within.
from_message 🔒
A file or a link clicked in a message of the container agent whose pane is meta: the file the agent’s own folders hold under that path, as a read-only copy named as the container names it, or a folder of them, as a Files pane confined to it. A path anywhere else, and one that leads out of the folder through a link, is refused with the reason; so is an open on another computer.
linked 🔒
A link in a message. A path no container agent can write opens as asked, and so does anything that is not a file or folder of this computer.
turn 🔒
What bind does with the disk. from_pane is the folder of the confined pane the open came from, whose check left the file’s resolved path in cmd; snapshots is where the copies are kept.

Type Aliases§

Turned 🔒