> For the complete documentation index, see [llms.txt](https://docs.9proxy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.9proxy.com/developers/sdk/sdk-nodejs/functions/setsavedatapath-path.md).

# setSaveDataPath(path)

Sets the directory path where SDK will store saved data (e.g., forwarding state).

```javascript
setSaveDataPath(path)
```

***

## Parameters

* **path** (<mark style="color:green;">string</mark>)– Filesystem path.

## Return Value

void or number

## Example

```javascript
// example

sdk.setSaveDataPath("/var/lib/sdk");

```
