Skip to main content

execute_file

AsyncMethod
This is a method of the SandboxProtocol class in the sandbox module.
Execute a file in the sandbox.

Signature

async def execute_file(
        &self,
        file_path: &str,
        args: Option<Vec<String>>,
        limits: Option<ResourceLimits>,
        env: Option<HashMap<String, String>>,
    ) -> Result<SandboxResult>

Parameters

file_path
&str
required
No description available.
args
Option<Vec<String>>
required
No description available.
limits
Option<ResourceLimits>
required
No description available.
env
Option<HashMap<String
required
No description available.

Returns

Returns
Result<SandboxResult>
The result of the operation.