Skip to main content

read_text

Function read_text 

Source
pub fn read_text(path: &str) -> Result<String, ToolExecutionError>
Expand description

Reads path as text after checking, without opening it, that it is a regular file of at most MAX_FILE_BYTES: opening a FIFO or a device can block forever. Local’s read_text.