## SetLocalPath(string) {#setlocalpath}

Specify an absolute or relative path to the directory where the resources will be downloaded. If the directory does not exist, it will be created automatically. By default, the resources are downloaded to aspose_data directory in the application's working directory.

```csharp
public static void SetLocalPath(string path)
```

| Parameter | Type | Description |
| --- | --- | --- |
| path | String | Absolute or relative path to the directory. |

### See Also

* class [Resources](../../resources)
* namespace [Aspose.OCR](../../resources)
* assembly [Aspose.OCR](../../../)

---

## SetLocalPath(string, bool) {#setlocalpath_1}

Specify an absolute or relative path to the directory where the resources will be downloaded. Pass `false` to the `create` parameter to prevent the directory from being created automatically. If the provided directory does not exist and creation is not allowed, the resources will be loaded into the aspose_data directory in the application's working directory.

```csharp
public static void SetLocalPath(string path, bool create)
```

| Parameter | Type | Description |
| --- | --- | --- |
| path | String | Absolute or relative path to the directory. |
| create | Boolean | Parameter to prevent the directory from being created automatically. |

### See Also

* class [Resources](../../resources)
* namespace [Aspose.OCR](../../resources)
* assembly [Aspose.OCR](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.OCR.dll -->
