E2B icon

E2B

Run commands and manage E2B sandboxes and snapshots

File → Create Folder

AI-generated

Summary

Create a new directory within a specified path inside an existing E2B sandbox.

Inputs

  • Sandbox ID (required) — ID of the sandbox to work with.
  • Path (required) — The full directory path inside the sandbox where the new folder should be created.
  • Timeout — Optional timeout in seconds for the operation; defaults to 300 seconds if not specified.

Output shape

A single record containing the sandbox ID, the path of the created directory, and a boolean indicating success of folder creation.

The operation returns immediately a JSON object confirming the folder creation status without pagination or further nested results.

Examples

Example 1: Create a new folder '/home/user/project/new-folder' inside a sandbox with ID 'sandbox-123'.

Specify 'sandbox-123' as Sandbox ID and '/home/user/project/new-folder' as Path.

Links

Discussion