# /mega/import

Robot: `/mega/import`

Stage: ga

## Example

```json
{
  "steps": {
    "imported": {
      "robot": "/mega/import",
      "credentials": "YOUR_MEGA_CREDENTIALS",
      "path": "path/to/files/",
      "recursive": true
    }
  }
}
```

## Parameters

* `interpolate`: Controls whether Assembly Variables are interpolated for individual instruction fields. By default, most Robot instruction fields interpolate Assembly Variables. Set this to \`false\` to treat every instruction field as literal text, or set an individual field path to \`false\` to treat only that field as literal text. For Robot-specific fields that are literal by default, set this to \`true\` or set that field path to \`true\` to opt back into interpolation. Use field names such as \`path\`, or dotted paths such as \`ffmpeg.vf\` for nested objects.
* `output_meta`
* `result`
* `queue`
* `force_accept`
* `ignore_errors`
* `force_name`
* `credentials`
* `bucket`
* `bucket_region`
* `host`
* `key`
* `secret`
* `path`: The path in your bucket to the specific file or directory. If the path points to a file, only this file will be imported. For example: \`images/avatar.jpg\`. If it points to a directory, indicated by a trailing slash (\`/\`), then all files that are direct descendants of this directory will be imported. For example: \`images/\`. Directories are \*\*not\*\* imported recursively. If you want to import files from subdirectories and sub-subdirectories, enable the \`recursive\` parameter. If you want to import all files from the root directory, please use \`/\` as the value here. In this case, make sure all your objects belong to a path. If you have objects in the root of your bucket that aren't prefixed with \`/\`, you'll receive an error: \`A client error (NoSuchKey) occurred when calling the GetObject operation: The specified key does not exist.\` You can also use an array of path strings here to import multiple paths in the same \<dfn>Robot\</dfn>'s \<dfn>Step\</dfn>.
* `recursive`
* `page_number`
* `files_per_page`
* `return_file_stubs`
