files

Function files 

Source
pub async fn files(root: String, inbox: Receiver<Val>, back: Sender<Event>)
Expand description

('host files): ('read path), answering the text, and ('root), answering where fetched modules were put.

Reading a file is a capability rather than a verb, so a task with no route to this peer cannot open one - which is what makes loading a module by name an ordinary message. ('root) is the host’s answer to give, since a build system may stage sources somewhere unpredictable; it grants no authority, as ('read path) already takes any path.