# DirectoryPath

Parameter `DirectoryPath` defines a path when the library have to read files.

## JSON Structure

**Location in template:**
```
ImageSourceOptions
    └── DirectoryPath
```

**Parent object:** [ImageSource](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/image-source.md) object

**Example:**

```json
{
    "DirectoryPath" : "D:\\ImageSourceDirectory\\"
}
```

> [!NOTE]
> - This snippet shows only the `DirectoryPath` parameter.
> - To use it, embed this parameter within a [ImageSource](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/image-source.md) object.
> - For the complete JSON structure, see:
>   - [Full JSON Structure](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/index.md#full-json-structure)
>   - [Minimal Valid JSON](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/index.md#minimal-valid-json-example)

## Parameter Details

| DirectoryPath Parameter Details |
| :------------- |
| **Type**<br>*String* |
