List Files • AI Agent SDK
list_files: List files in a sandbox directory.
list_files
Async
Method
</div>
This is a method of the SandboxProtocol class in the protocols module.
List files in a sandbox directory.
Signature
async def list_files(path: str) -> List[str]Parameters
ParamField
strDirectory path within sandbox
Returns
ResponseField
List[str]List of file paths
Source
View on GitHubpraisonaiagents/sandbox/protocols.py at line 327