Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2025.2

# ServerHelperApi::SetDvcsDir(const char*)

Sets the root dir for the personal server.

Virtual? | No |
Class | `ServerHelperApi` |
Arguments | `const char *path` | full path to the root directory
| `Error *e` | an Error object
Returns | `int` | returns 0 if there is an error, 1 if successful

## Notes

Sets the directory that will be used to hold the personal server. The directory should not already have a personal server in it or `InitLocalServer()` will fail. `SetDvcsDir()` does not check for an existing server; use the `Exists()` method after running `SetDvcsDir()` to test for an existing personal server.

Your search for returned results