pub fn check_script_file_on_disk(
path: &Path,
require_executable: bool,
) -> Result<(), ScriptLawError>Expand description
Script file check at install/mount time (fail-closed, the same law as a missing wasm file): it must be a regular file; when the script body is executed directly it must also have the executable bit on unix.
path is supplied by the caller: plugin install checks the staging area contents (bytes
unchanged after the rename), global mount checks the final path. Not checked at load time —
archived entries are left to self-check at execution time (see ScriptToolEntry::check_laws);
once the file comes back the tool is alive again.