Skip to main content

read_run_script_file

Function read_run_script_file 

Source
pub fn read_run_script_file(
    path: &Path,
    max_bytes: u64,
) -> Result<Vec<u8>, ScriptLoadError>
Expand description

Read a real filesystem path for run, applying size and text checks.

Size is checked via metadata before any body read so oversized files never enter memory.